Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001272/0.001272, allocations: 112 kB / 20.48 MB, free: 1.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001657/0.001657, allocations: 206.4 kB / 23.77 MB, free: 4.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 230.5 MB / 257.4 MB, free: 7.727 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.234/0.234, allocations: 46.95 MB / 360.9 MB, free: 3.895 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002301/0.002301, allocations: 83.86 kB / 0.4962 GB, free: 7.504 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3351, allocations: 66.08 MB / 0.5607 GB, free: 4.027 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01454/0.3496, allocations: 10.31 MB / 0.5708 GB, free: 9.668 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00862/0.3583, allocations: 3.75 MB / 0.5745 GB, free: 5.902 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002063/0.3603, allocations: 103.3 kB / 0.5746 GB, free: 5.801 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002357/0.3627, allocations: 0.8615 MB / 0.5754 GB, free: 4.934 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003147/0.3658, allocations: 1.01 MB / 0.5764 GB, free: 3.918 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00125/0.3671, allocations: 0.5188 MB / 0.5769 GB, free: 3.398 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004436/0.3715, allocations: 3.348 MB / 0.5802 GB, free: 40 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002702/0.3742, allocations: 1.694 MB / 0.5818 GB, free: 14.28 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002705/0.3769, allocations: 1.604 MB / 0.5834 GB, free: 12.67 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004105/0.381, allocations: 1.938 MB / 0.5853 GB, free: 10.73 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001156/0.3822, allocations: 428 kB / 0.5857 GB, free: 10.31 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001751/0.3839, allocations: 0.535 MB / 0.5862 GB, free: 9.773 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002019/0.386, allocations: 1.258 MB / 0.5875 GB, free: 8.512 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002713/0.3887, allocations: 1.521 MB / 0.5889 GB, free: 6.984 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007094/0.3958, allocations: 5.64 MB / 0.5944 GB, free: 1.324 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.3958, allocations: 0 / 0.5944 GB, free: 1.324 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3958, allocations: 3.938 kB / 0.5944 GB, free: 1.32 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001512/0.3959, allocations: 4 kB / 0.5945 GB, free: 1.316 MB / 430.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.009886/0.4058, allocations: 3.87 MB / 0.5982 GB, free: 13.39 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.4059, allocations: 8.031 kB / 0.5982 GB, free: 13.38 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007476/0.4066, allocations: 405.2 kB / 0.5986 GB, free: 12.98 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00133/0.4079, allocations: 418.5 kB / 0.599 GB, free: 12.57 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004535/0.4125, allocations: 2.024 MB / 0.601 GB, free: 10.5 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002344/0.4127, allocations: 214.8 kB / 0.6012 GB, free: 10.29 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006262/0.4133, allocations: 280 kB / 0.6015 GB, free: 10.02 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00754/0.4209, allocations: 3.814 MB / 0.6052 GB, free: 6.113 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.371e-05/0.4209, allocations: 7.938 kB / 0.6052 GB, free: 6.105 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002672/0.4212, allocations: 116 kB / 0.6053 GB, free: 5.992 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001801/0.4214, allocations: 145.5 kB / 0.6055 GB, free: 5.848 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0064/0.4278, allocations: 3.164 MB / 0.6085 GB, free: 2.672 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0218/0.4496, allocations: 10.36 MB / 0.6187 GB, free: 7.996 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003914/0.4535, allocations: 1.61 MB / 0.6202 GB, free: 6.387 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002261/0.4558, allocations: 1.125 MB / 0.6213 GB, free: 5.254 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002736/0.456, allocations: 61.2 kB / 0.6214 GB, free: 5.195 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.266e-05/0.4561, allocations: 43.88 kB / 0.6214 GB, free: 5.141 MB / 462.1 MB Notification: Performance of pre-optimization done (n=139): time 4.037e-06/0.4561, allocations: 0 / 0.6214 GB, free: 5.141 MB / 462.1 MB Notification: Performance of matching and sorting (n=154): time 0.01935/0.4755, allocations: 7.756 MB / 0.629 GB, free: 13.37 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.483e-05/0.4755, allocations: 64.72 kB / 0.6291 GB, free: 13.29 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003284/0.4788, allocations: 1.972 MB / 0.631 GB, free: 11.28 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002813/0.4791, allocations: 49.7 kB / 0.631 GB, free: 11.22 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001181/0.4803, allocations: 1.405 MB / 0.6324 GB, free: 9.805 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005822/0.4809, allocations: 0.5422 MB / 0.633 GB, free: 9.258 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005556/0.4814, allocations: 327.4 kB / 0.6333 GB, free: 8.93 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.4815, allocations: 301.1 kB / 0.6335 GB, free: 8.633 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001522/0.4831, allocations: 0.8862 MB / 0.6344 GB, free: 7.746 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001868/0.4849, allocations: 1.351 MB / 0.6357 GB, free: 6.203 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003683/0.4886, allocations: 2.393 MB / 0.6381 GB, free: 3.617 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.127e-05/0.4886, allocations: 4 kB / 0.6381 GB, free: 3.613 MB / 478.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005474/0.4941, allocations: 2.865 MB / 0.6409 GB, free: 0.7266 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.661e-05/0.4941, allocations: 8 kB / 0.6409 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.519e-05/0.4942, allocations: 16 kB / 0.6409 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009569/0.4951, allocations: 387.5 kB / 0.6413 GB, free: 320 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001747/0.4969, allocations: 443.3 kB / 0.6417 GB, free: 15.88 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007252/0.5041, allocations: 6.416 MB / 0.648 GB, free: 9.121 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001829/0.5059, allocations: 123.8 kB / 0.6481 GB, free: 9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000184/0.5061, allocations: 76.14 kB / 0.6481 GB, free: 8.926 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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.001755/0.5079, allocations: 0.9111 MB / 0.649 GB, free: 8.004 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005613/0.5084, allocations: 218.6 kB / 0.6492 GB, free: 7.789 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005659/0.5141, allocations: 2.895 MB / 0.6521 GB, free: 4.875 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.927e-05/0.5141, allocations: 16 kB / 0.6521 GB, free: 4.859 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.28e-05/0.5141, allocations: 8 kB / 0.6521 GB, free: 4.852 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.15e-05/0.5142, allocations: 8.078 kB / 0.6521 GB, free: 4.844 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01269/0.5268, allocations: 5.748 MB / 0.6577 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.398e-06/0.5269, allocations: 4 kB / 0.6577 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/0.5279, allocations: 236.1 kB / 0.6579 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002116/0.53, allocations: 0.8106 MB / 0.6587 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001131/0.5301, allocations: 35.98 kB / 0.6588 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0131/0.5432, allocations: 10.35 MB / 0.6689 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/0.5432, allocations: 4 kB / 0.6689 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007207/0.5504, allocations: 4.166 MB / 0.6729 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001241/0.5517, allocations: 422.4 kB / 0.6734 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003207/0.552, allocations: 35.98 kB / 0.6734 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001057/0.5531, allocations: 91.89 kB / 0.6735 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003418/0.5534, allocations: 128.9 kB / 0.6736 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001121/0.5535, allocations: 47.98 kB / 0.6736 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002117/0.5556, allocations: 1.344 MB / 0.675 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.5556, allocations: 0 / 0.675 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002398/0.558, allocations: 0.5781 MB / 0.6755 GB, free: 12.28 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.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 (116): * Single equations (assignments): 113 * 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.008081/0.5661, allocations: 4.813 MB / 0.6802 GB, free: 7.387 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004364/0.5705, allocations: 2.478 MB / 0.6826 GB, free: 4.867 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.355e-06/0.5705, allocations: 4 kB / 0.6826 GB, free: 4.863 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002495/0.573, allocations: 1.564 MB / 0.6842 GB, free: 3.266 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002729/0.5757, allocations: 0.5461 MB / 0.6847 GB, free: 2.73 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03523/0.6109, allocations: 21.46 MB / 0.7057 GB, free: 12.58 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002061/0.613, allocations: 1.647 MB / 0.7073 GB, free: 10.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001423/0.6144, allocations: 469.8 kB / 0.7077 GB, free: 10.44 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001567/0.616, allocations: 1.136 MB / 0.7088 GB, free: 9.305 MB / 0.545 GB Notification: Performance of SimCode: time 9.82e-07/0.616, allocations: 0 / 0.7088 GB, free: 9.305 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4041/1.02, allocations: 59.75 MB / 0.7672 GB, free: 134.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.82/14.84, allocations: 14.73 kB / 0.7672 GB, free: 134.5 MB / 0.5606 GB " [Timeout remaining time 645] (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/Machines/SMPM_VoltageSourceWithLosses/SMPM_VoltageSourceWithLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable inertiaLoad.phi in file ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.csv. Warning: Get data of variable inertiaLoad.phi from file ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.csv failed! Error: Could not read variable inertiaLoad.w in file ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.csv. Warning: Get data of variable inertiaLoad.w from file ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.892632712610066]