Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009933/0.0009932, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.134/1.134, allocations: 226.5 MB / 244.7 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007669/0.0007668, allocations: 102.8 kB / 296.7 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002009/0.0002011, allocations: 8 kB / 356.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1638/0.164, allocations: 51.29 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.006697/0.1708, allocations: 10.51 MB / 418.6 MB, free: 17.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003313/0.1741, allocations: 3.804 MB / 422.4 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005238/0.1746, allocations: 71.62 kB / 422.5 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000982/0.1756, allocations: 0.6988 MB / 423.2 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001136/0.1768, allocations: 0.8158 MB / 424 MB, free: 11.76 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005278/0.1773, allocations: 371.2 kB / 424.4 MB, free: 11.4 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001734/0.1791, allocations: 3.414 MB / 427.8 MB, free: 7.969 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001882/0.1809, allocations: 2.609 MB / 430.4 MB, free: 5.297 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007235/0.1817, allocations: 1.148 MB / 431.6 MB, free: 4.145 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001082/0.1828, allocations: 1.603 MB / 433.2 MB, free: 2.535 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000235/0.183, allocations: 172 kB / 433.3 MB, free: 2.367 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004782/0.1835, allocations: 291.8 kB / 433.6 MB, free: 2.082 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005787/0.1841, allocations: 0.9228 MB / 434.5 MB, free: 1.156 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008998/0.185, allocations: 1.529 MB / 436.1 MB, free: 15.61 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002805/0.1878, allocations: 4.539 MB / 440.6 MB, free: 11.06 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.1878, allocations: 4 kB / 440.6 MB, free: 11.06 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1878, allocations: 3.984 kB / 440.6 MB, free: 11.05 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.949e-05/0.1879, allocations: 0 / 440.6 MB, free: 11.05 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.004751/0.1926, allocations: 3.304 MB / 443.9 MB, free: 7.684 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.1927, allocations: 12.03 kB / 443.9 MB, free: 7.672 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004298/0.1931, allocations: 430 kB / 444.4 MB, free: 7.242 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008093/0.1939, allocations: 416.4 kB / 444.8 MB, free: 6.832 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002614/0.1965, allocations: 2.068 MB / 446.8 MB, free: 4.711 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001548/0.1967, allocations: 234 kB / 447.1 MB, free: 4.48 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003341/0.197, allocations: 291.9 kB / 447.3 MB, free: 4.195 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004873/0.2019, allocations: 3.831 MB / 451.2 MB, free: 292 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.613e-05/0.202, allocations: 4 kB / 451.2 MB, free: 288 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002228/0.2022, allocations: 120 kB / 451.3 MB, free: 168 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001142/0.2023, allocations: 149.7 kB / 451.4 MB, free: 16 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004311/0.2067, allocations: 3.239 MB / 454.7 MB, free: 12.77 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01399/0.2207, allocations: 12.21 MB / 466.9 MB, free: 196 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002086/0.2228, allocations: 1.944 MB / 468.8 MB, free: 14.13 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001654/0.2244, allocations: 1.172 MB / 470 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002672/0.2247, allocations: 207.5 kB / 470.2 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.2248, allocations: 51.86 kB / 470.3 MB, free: 12.65 MB / 346.7 MB Notification: Performance of pre-optimization done (n=139): time 3.406e-06/0.2248, allocations: 0 / 470.3 MB, free: 12.65 MB / 346.7 MB Notification: Performance of matching and sorting (n=155): time 0.01191/0.2367, allocations: 7.048 MB / 477.3 MB, free: 5.473 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.7e-05/0.2367, allocations: 64.72 kB / 477.4 MB, free: 5.398 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002477/0.2392, allocations: 2.016 MB / 479.4 MB, free: 3.344 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.602e-05/0.2393, allocations: 49.7 kB / 479.4 MB, free: 3.289 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008414/0.2402, allocations: 1.456 MB / 480.9 MB, free: 1.816 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003425/0.2405, allocations: 0.5315 MB / 481.4 MB, free: 1.277 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.497e-05/0.2406, allocations: 40 kB / 481.5 MB, free: 1.238 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.2408, allocations: 385.8 kB / 481.8 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001185/0.242, allocations: 0.8746 MB / 482.7 MB, free: 15.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001455/0.2434, allocations: 1.442 MB / 484.2 MB, free: 14.29 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002817/0.2463, allocations: 2.494 MB / 486.6 MB, free: 11.54 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.204e-06/0.2463, allocations: 4 kB / 486.7 MB, free: 11.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004099/0.2504, allocations: 3.006 MB / 489.7 MB, free: 8.492 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.2504, allocations: 15.94 kB / 489.7 MB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.923e-05/0.2504, allocations: 16 kB / 489.7 MB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008028/0.2512, allocations: 395.6 kB / 490.1 MB, free: 8.062 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001516/0.2528, allocations: 475.2 kB / 490.5 MB, free: 7.598 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004992/0.2578, allocations: 6.137 MB / 496.7 MB, free: 1.059 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001236/0.259, allocations: 143.6 kB / 496.8 MB, free: 0.918 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001361/0.2592, allocations: 79.98 kB / 496.9 MB, free: 0.8398 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001272/0.2605, allocations: 0.9368 MB / 497.8 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002749/0.2607, allocations: 213.4 kB / 498 MB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003791/0.2645, allocations: 2.594 MB / 0.4889 GB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.2646, allocations: 16 kB / 0.4889 GB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.777e-06/0.2646, allocations: 4 kB / 0.4889 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.399e-05/0.2646, allocations: 7.969 kB / 0.4889 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008116/0.2727, allocations: 5.855 MB / 0.4946 GB, free: 7.012 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.283e-06/0.2727, allocations: 4 kB / 0.4946 GB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001116/0.2739, allocations: 291.5 kB / 0.4949 GB, free: 6.723 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008936/0.2748, allocations: 401.8 kB / 0.4953 GB, free: 6.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/0.2749, allocations: 44.08 kB / 0.4954 GB, free: 6.277 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1455/0.4203, allocations: 7.583 MB / 0.5028 GB, free: 87.85 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.4204, allocations: 4.656 kB / 0.5028 GB, free: 87.85 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005137/0.4255, allocations: 3.839 MB / 0.5065 GB, free: 86.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000767/0.4263, allocations: 494.8 kB / 0.507 GB, free: 86.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002251/0.4265, allocations: 35.75 kB / 0.507 GB, free: 86.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009701/0.4275, allocations: 94.39 kB / 0.5071 GB, free: 86.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002301/0.4278, allocations: 118.4 kB / 0.5072 GB, free: 86.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.41e-05/0.4278, allocations: 47.3 kB / 0.5073 GB, free: 86.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001699/0.4296, allocations: 1.372 MB / 0.5086 GB, free: 85.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4296, allocations: 0 / 0.5086 GB, free: 85.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001664/0.4312, allocations: 0.5635 MB / 0.5092 GB, free: 85.84 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.der1.u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (146): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 9,(1,100.0%) 6,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004615/0.4359, allocations: 4.491 MB / 0.5135 GB, free: 83.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002834/0.4387, allocations: 2.624 MB / 0.5161 GB, free: 82.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.4387, allocations: 3.938 kB / 0.5161 GB, free: 82.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001554/0.4403, allocations: 1.568 MB / 0.5176 GB, free: 81.66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003036/0.4433, allocations: 0.5272 MB / 0.5182 GB, free: 81.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02206/0.4654, allocations: 18.49 MB / 0.5362 GB, free: 62.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001327/0.4668, allocations: 2.212 MB / 0.5384 GB, free: 60.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001229/0.468, allocations: 1.202 MB / 0.5395 GB, free: 59.21 MB / 378.7 MB Notification: Performance of SimCode: time 1.283e-06/0.468, allocations: 0 / 0.5395 GB, free: 59.21 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.186/8.654, allocations: 103 MB / 0.6401 GB, free: 4.043 MB / 426.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches