Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 105.2 kB / 16.27 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001434/0.001434, allocations: 191.6 kB / 17.19 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.381/1.381, allocations: 205.1 MB / 223.1 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.205/0.205, allocations: 43.52 MB / 313.9 MB, free: 0.5273 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001615/0.001615, allocations: 66.09 kB / 382.8 MB, free: 56.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1056, allocations: 57.8 MB / 440.6 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01259/0.1183, allocations: 11.63 MB / 452.3 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007938/0.1263, allocations: 3.95 MB / 456.2 MB, free: 7.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00184/0.1281, allocations: 67.62 kB / 456.3 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002379/0.1306, allocations: 0.8692 MB / 457.1 MB, free: 6.223 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003221/0.1338, allocations: 0.9473 MB / 458.1 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001435/0.1353, allocations: 0.5228 MB / 458.6 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004003/0.1393, allocations: 3.309 MB / 461.9 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003405/0.1427, allocations: 2.988 MB / 464.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001986/0.1447, allocations: 1.546 MB / 466.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002335/0.147, allocations: 2.001 MB / 468.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005607/0.1476, allocations: 432 kB / 468.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009094/0.1485, allocations: 0.5272 MB / 469.4 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001058/0.1496, allocations: 1.227 MB / 470.6 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001759/0.1514, allocations: 1.894 MB / 472.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004596/0.156, allocations: 5.495 MB / 478 MB, free: 1.223 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.156, allocations: 0 / 478 MB, free: 1.223 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.156, allocations: 0 / 478 MB, free: 1.223 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000103/0.1561, allocations: 3.938 kB / 478 MB, free: 1.219 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.007605/0.1637, allocations: 3.825 MB / 481.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.1638, allocations: 11.89 kB / 481.9 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004915/0.1643, allocations: 413.2 kB / 482.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009837/0.1653, allocations: 396.5 kB / 482.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003145/0.1684, allocations: 1.939 MB / 484.6 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001979/0.1687, allocations: 225.8 kB / 484.8 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003995/0.1691, allocations: 283.9 kB / 485.1 MB, free: 10.01 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005757/0.1748, allocations: 3.723 MB / 488.8 MB, free: 6.219 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.922e-05/0.1749, allocations: 11.84 kB / 488.8 MB, free: 6.207 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002922/0.1752, allocations: 124 kB / 488.9 MB, free: 6.086 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001554/0.1754, allocations: 141.5 kB / 489.1 MB, free: 5.945 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0052/0.1806, allocations: 3.168 MB / 492.2 MB, free: 2.766 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01754/0.1981, allocations: 11.57 MB / 0.492 GB, free: 6.887 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003615/0.2018, allocations: 2.166 MB / 0.4941 GB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001923/0.2037, allocations: 1.226 MB / 0.4953 GB, free: 3.383 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002897/0.204, allocations: 211.4 kB / 0.4955 GB, free: 3.141 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.2041, allocations: 56.34 kB / 0.4956 GB, free: 3.074 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.125e-06/0.2041, allocations: 0 / 0.4956 GB, free: 3.074 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01799/0.2221, allocations: 8.209 MB / 0.5036 GB, free: 10.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/0.2222, allocations: 72.66 kB / 0.5037 GB, free: 10.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003033/0.2252, allocations: 1.941 MB / 0.5056 GB, free: 8.699 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001426/0.2254, allocations: 53.7 kB / 0.5056 GB, free: 8.641 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001003/0.2264, allocations: 1.359 MB / 0.5069 GB, free: 7.266 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004455/0.2268, allocations: 0.5198 MB / 0.5074 GB, free: 6.738 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005061/0.2273, allocations: 323.3 kB / 0.5078 GB, free: 6.418 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.103e-05/0.2274, allocations: 305.1 kB / 0.508 GB, free: 6.117 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001328/0.2288, allocations: 0.8823 MB / 0.5089 GB, free: 5.234 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001615/0.2304, allocations: 1.337 MB / 0.5102 GB, free: 3.707 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003163/0.2336, allocations: 2.389 MB / 0.5125 GB, free: 1.121 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.218e-06/0.2336, allocations: 7.938 kB / 0.5126 GB, free: 1.113 MB / 398.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.02297/0.2566, allocations: 2.924 MB / 0.5154 GB, free: 14.15 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.693e-05/0.2567, allocations: 12 kB / 0.5154 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.511e-05/0.2567, allocations: 16 kB / 0.5154 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009298/0.2576, allocations: 387.4 kB / 0.5158 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001869/0.2595, allocations: 451.2 kB / 0.5162 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005804/0.2653, allocations: 6.772 MB / 0.5228 GB, free: 6.094 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001799/0.2672, allocations: 123.8 kB / 0.523 GB, free: 5.973 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001312/0.2673, allocations: 76 kB / 0.523 GB, free: 5.898 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (206): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,2,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001537/0.2688, allocations: 0.8993 MB / 0.5239 GB, free: 4.988 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003602/0.2692, allocations: 209.4 kB / 0.5241 GB, free: 4.781 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004782/0.274, allocations: 2.911 MB / 0.527 GB, free: 1.848 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/0.274, allocations: 12 kB / 0.527 GB, free: 1.836 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.567e-06/0.274, allocations: 8 kB / 0.527 GB, free: 1.828 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.2741, allocations: 7.969 kB / 0.527 GB, free: 1.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2157/0.4897, allocations: 6.16 MB / 0.533 GB, free: 85.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.194e-05/0.4898, allocations: 4.281 kB / 0.533 GB, free: 85.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/0.4908, allocations: 242.4 kB / 0.5332 GB, free: 85.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001945/0.4928, allocations: 0.8123 MB / 0.534 GB, free: 85.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001093/0.4929, allocations: 40.44 kB / 0.5341 GB, free: 85.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01127/0.5042, allocations: 10.73 MB / 0.5445 GB, free: 79.6 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.5042, allocations: 8.031 kB / 0.5446 GB, free: 79.59 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00679/0.511, allocations: 4.183 MB / 0.5486 GB, free: 77.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009363/0.512, allocations: 479.9 kB / 0.5491 GB, free: 77.69 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000277/0.5123, allocations: 43.23 kB / 0.5491 GB, free: 77.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/0.5133, allocations: 96.41 kB / 0.5492 GB, free: 77.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002788/0.5136, allocations: 124.3 kB / 0.5494 GB, free: 77.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.966e-05/0.5137, allocations: 50.72 kB / 0.5494 GB, free: 77.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001673/0.5154, allocations: 1.336 MB / 0.5507 GB, free: 77.08 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5154, allocations: 0 / 0.5507 GB, free: 77.08 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001741/0.5171, allocations: 0.5737 MB / 0.5513 GB, free: 77.03 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,2,100.0%), (5,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005557/0.5227, allocations: 4.832 MB / 0.556 GB, free: 74.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004568/0.5273, allocations: 3.294 MB / 0.5592 GB, free: 72.36 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.815e-06/0.5273, allocations: 4 kB / 0.5592 GB, free: 72.36 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001871/0.5292, allocations: 1.627 MB / 0.5608 GB, free: 70.7 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002362/0.5316, allocations: 0.5426 MB / 0.5613 GB, free: 70.2 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02569/0.5573, allocations: 23.94 MB / 0.5847 GB, free: 44.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001513/0.5588, allocations: 2.209 MB / 0.5869 GB, free: 42.18 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00138/0.5602, allocations: 469.7 kB / 0.5873 GB, free: 41.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001062/0.5613, allocations: 1.14 MB / 0.5884 GB, free: 40.59 MB / 414.1 MB Notification: Performance of SimCode: time 7.81e-07/0.5613, allocations: 0 / 0.5884 GB, free: 40.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07944/0.6407, allocations: 54.34 MB / 0.6415 GB, free: 2.207 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.46, allocations: 3.75 kB / 0.6415 GB, free: 2.203 MB / 430.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches