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: translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 111.5 kB / 17.04 MB, free: 5.797 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.0016/0.0016, allocations: 196 kB / 17.98 MB, free: 5.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.046/2.046, allocations: 205.1 MB / 223.8 MB, free: 12.27 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.255/0.255, allocations: 43.52 MB / 314.7 MB, free: 488 kB / 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.001461/0.001461, allocations: 66.67 kB / 384.2 MB, free: 56.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.14, allocations: 57.79 MB / 442 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01277/0.1528, allocations: 11.63 MB / 453.6 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009788/0.1627, allocations: 3.953 MB / 457.6 MB, free: 6.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003627/0.1664, allocations: 63.69 kB / 457.6 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003243/0.1697, allocations: 0.8576 MB / 458.5 MB, free: 5.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005177/0.1749, allocations: 0.9473 MB / 459.4 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001892/0.1768, allocations: 0.5265 MB / 460 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007163/0.184, allocations: 3.344 MB / 463.3 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005661/0.1897, allocations: 2.981 MB / 466.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003698/0.1934, allocations: 1.546 MB / 467.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004259/0.1977, allocations: 2.001 MB / 469.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001675/0.1994, allocations: 432 kB / 470.2 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002546/0.2019, allocations: 0.535 MB / 470.8 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001614/0.2036, allocations: 1.223 MB / 472 MB, free: 7.949 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002886/0.2065, allocations: 1.898 MB / 473.9 MB, free: 6.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006088/0.2126, allocations: 5.572 MB / 479.5 MB, free: 464 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.2126, allocations: 7.938 kB / 479.5 MB, free: 456 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2126, allocations: 7.938 kB / 479.5 MB, free: 448 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000131/0.2127, allocations: 0 / 479.5 MB, free: 448 kB / 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.00882/0.2216, allocations: 3.817 MB / 483.3 MB, free: 12.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.851e-05/0.2216, allocations: 15.89 kB / 483.3 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00111/0.2228, allocations: 392.5 kB / 483.7 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003953/0.2267, allocations: 1.958 MB / 485.7 MB, free: 10.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001872/0.2269, allocations: 214 kB / 485.9 MB, free: 9.926 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004438/0.2274, allocations: 291.8 kB / 486.2 MB, free: 9.641 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006919/0.2343, allocations: 3.723 MB / 489.9 MB, free: 5.848 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.33e-05/0.2344, allocations: 11.91 kB / 489.9 MB, free: 5.836 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002614/0.2347, allocations: 116 kB / 490 MB, free: 5.723 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001753/0.2349, allocations: 137.5 kB / 490.1 MB, free: 5.586 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005656/0.2405, allocations: 3.168 MB / 493.3 MB, free: 2.406 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02083/0.2614, allocations: 11.44 MB / 0.4929 GB, free: 6.664 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003682/0.2651, allocations: 2.163 MB / 0.495 GB, free: 4.391 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001861/0.267, allocations: 1.238 MB / 0.4962 GB, free: 3.148 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003153/0.2674, allocations: 211.5 kB / 0.4964 GB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.767e-05/0.2674, allocations: 47.88 kB / 0.4965 GB, free: 2.848 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 4.107e-06/0.2674, allocations: 7.984 kB / 0.4965 GB, free: 2.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01833/0.2858, allocations: 8.213 MB / 0.5045 GB, free: 10.53 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.592e-05/0.2858, allocations: 68.72 kB / 0.5046 GB, free: 10.45 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003238/0.2891, allocations: 1.933 MB / 0.5065 GB, free: 8.473 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001854/0.2893, allocations: 49.7 kB / 0.5065 GB, free: 8.418 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001038/0.2903, allocations: 1.359 MB / 0.5078 GB, free: 7.043 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005117/0.2909, allocations: 0.5237 MB / 0.5083 GB, free: 6.512 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000526/0.2914, allocations: 323.3 kB / 0.5087 GB, free: 6.191 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.2915, allocations: 305.1 kB / 0.5089 GB, free: 5.891 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001435/0.293, allocations: 0.8784 MB / 0.5098 GB, free: 5.012 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001657/0.2946, allocations: 1.349 MB / 0.5111 GB, free: 3.473 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003116/0.2977, allocations: 2.382 MB / 0.5134 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.2978, allocations: 4 kB / 0.5135 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005154/0.3029, allocations: 2.932 MB / 0.5163 GB, free: 13.92 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.834e-05/0.303, allocations: 12 kB / 0.5163 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.555e-05/0.303, allocations: 16 kB / 0.5163 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008829/0.3039, allocations: 387.6 kB / 0.5167 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001588/0.3055, allocations: 447.2 kB / 0.5171 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006464/0.312, allocations: 6.76 MB / 0.5237 GB, free: 5.879 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002276/0.3143, allocations: 123.9 kB / 0.5239 GB, free: 5.758 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001651/0.3145, allocations: 79.92 kB / 0.5239 GB, free: 5.68 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.002023/0.3165, allocations: 0.9071 MB / 0.5248 GB, free: 4.762 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004926/0.317, allocations: 209.4 kB / 0.525 GB, free: 4.555 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00505/0.3221, allocations: 2.899 MB / 0.5279 GB, free: 1.633 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.71e-05/0.3221, allocations: 19.98 kB / 0.5279 GB, free: 1.613 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-05/0.3221, allocations: 8 kB / 0.5279 GB, free: 1.605 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.506e-05/0.3221, allocations: 3.984 kB / 0.5279 GB, free: 1.602 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3432/0.6653, allocations: 6.129 MB / 0.5339 GB, free: 85.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.556e-05/0.6654, allocations: 6.266 kB / 0.5339 GB, free: 85.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/0.6665, allocations: 244 kB / 0.5341 GB, free: 85.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002117/0.6686, allocations: 0.8038 MB / 0.5349 GB, free: 85.53 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001332/0.6688, allocations: 39.95 kB / 0.5349 GB, free: 85.53 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01255/0.6813, allocations: 10.73 MB / 0.5454 GB, free: 79.29 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/0.6814, allocations: 12.69 kB / 0.5454 GB, free: 79.29 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008205/0.6896, allocations: 4.184 MB / 0.5495 GB, free: 77.58 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001741/0.6914, allocations: 487.9 kB / 0.55 GB, free: 77.38 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002886/0.6917, allocations: 35.59 kB / 0.55 GB, free: 77.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/0.6928, allocations: 100.3 kB / 0.5501 GB, free: 77.33 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003457/0.6931, allocations: 125 kB / 0.5502 GB, free: 77.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.62e-05/0.6932, allocations: 55.05 kB / 0.5503 GB, free: 77.29 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001868/0.6951, allocations: 1.334 MB / 0.5516 GB, free: 76.76 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6951, allocations: 0 / 0.5516 GB, free: 76.76 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002181/0.6973, allocations: 0.5694 MB / 0.5521 GB, free: 76.71 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.0003803/0.6977, allocations: 201.3 kB / 0.5523 GB, free: 76.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003461/0.7012, allocations: 2.636 MB / 0.5549 GB, free: 75.37 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.7012, allocations: 3.844 kB / 0.5549 GB, free: 75.37 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002075/0.7033, allocations: 1.643 MB / 0.5565 GB, free: 74.54 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002351/0.7056, allocations: 0.5416 MB / 0.557 GB, free: 74.36 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008617/0.7143, allocations: 5.741 MB / 0.5626 GB, free: 69.55 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001536/0.7158, allocations: 2.213 MB / 0.5648 GB, free: 67.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001589/0.7174, allocations: 469 kB / 0.5653 GB, free: 66.86 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004184/0.7179, allocations: 155.4 kB / 0.5654 GB, free: 66.71 MB / 414.1 MB Notification: Performance of SimCode: time 8.92e-07/0.7179, allocations: 0 / 0.5654 GB, free: 66.71 MB / 414.1 MB Notification: Performance of Templates: time 0.0512/0.7691, allocations: 32.78 MB / 0.5974 GB, free: 34.04 MB / 414.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > 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