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) 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/ModelicaTest trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001111/0.001111, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001221/0.001221, allocations: 204.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.202/0.202, allocations: 46.11 MB / 344.1 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 71.52 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09809/0.09948, allocations: 62.44 MB / 480.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01331/0.1128, allocations: 11.73 MB / 491.8 MB, free: 9.41 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007751/0.1206, allocations: 3.953 MB / 495.8 MB, free: 5.441 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001775/0.1224, allocations: 75.62 kB / 495.9 MB, free: 5.367 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002636/0.1251, allocations: 0.8614 MB / 496.7 MB, free: 4.5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003602/0.1287, allocations: 0.9551 MB / 497.7 MB, free: 3.539 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001553/0.1303, allocations: 0.5227 MB / 498.2 MB, free: 3.016 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004033/0.1344, allocations: 3.321 MB / 0.4898 GB, free: 15.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003854/0.1382, allocations: 3.036 MB / 0.4927 GB, free: 12.58 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001954/0.1402, allocations: 1.557 MB / 0.4943 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002683/0.1429, allocations: 2.005 MB / 0.4962 GB, free: 9.008 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008752/0.1438, allocations: 428 kB / 0.4966 GB, free: 8.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001284/0.1451, allocations: 0.5388 MB / 0.4972 GB, free: 8.051 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001302/0.1464, allocations: 1.235 MB / 0.4984 GB, free: 6.812 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002404/0.1488, allocations: 1.894 MB / 0.5002 GB, free: 4.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1894/0.3383, allocations: 5.502 MB / 0.5056 GB, free: 22.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.3383, allocations: 5 kB / 0.5056 GB, free: 22.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3383, allocations: 3.469 kB / 0.5056 GB, free: 22.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001608/0.3385, allocations: 0 / 0.5056 GB, free: 22.25 MB / 382.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.008101/0.3466, allocations: 3.849 MB / 0.5094 GB, free: 20.8 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.3466, allocations: 9 kB / 0.5094 GB, free: 20.8 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004774/0.3471, allocations: 408.4 kB / 0.5098 GB, free: 20.74 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00111/0.3483, allocations: 401.4 kB / 0.5101 GB, free: 20.56 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00305/0.3513, allocations: 2.024 MB / 0.5121 GB, free: 20.04 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001751/0.3515, allocations: 219 kB / 0.5123 GB, free: 20.03 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003683/0.3519, allocations: 289.4 kB / 0.5126 GB, free: 20.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005624/0.3575, allocations: 3.741 MB / 0.5163 GB, free: 19.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.731e-05/0.3576, allocations: 6.438 kB / 0.5163 GB, free: 19.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00026/0.3579, allocations: 116.8 kB / 0.5164 GB, free: 19.71 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001341/0.358, allocations: 140.5 kB / 0.5165 GB, free: 19.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005022/0.363, allocations: 3.173 MB / 0.5196 GB, free: 18.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01515/0.3782, allocations: 11.57 MB / 0.5309 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003122/0.3813, allocations: 2.178 MB / 0.533 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001701/0.3831, allocations: 1.227 MB / 0.5342 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000281/0.3834, allocations: 209.3 kB / 0.5344 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.023e-05/0.3834, allocations: 53.61 kB / 0.5345 GB, free: 10.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.807e-06/0.3834, allocations: 0 / 0.5345 GB, free: 10.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.01538/0.3988, allocations: 7.859 MB / 0.5422 GB, free: 4.738 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/0.3989, allocations: 68.72 kB / 0.5422 GB, free: 4.656 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002203/0.4011, allocations: 1.955 MB / 0.5441 GB, free: 2.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.211e-05/0.4012, allocations: 53.7 kB / 0.5442 GB, free: 2.602 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005689/0.4018, allocations: 1.361 MB / 0.5455 GB, free: 1.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002622/0.402, allocations: 0.5287 MB / 0.546 GB, free: 0.707 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004121/0.4025, allocations: 318.5 kB / 0.5463 GB, free: 404 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.216e-05/0.4025, allocations: 309.1 kB / 0.5466 GB, free: 92 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001338/0.4038, allocations: 0.883 MB / 0.5475 GB, free: 15.21 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001661/0.4055, allocations: 1.35 MB / 0.5488 GB, free: 13.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003193/0.4087, allocations: 2.385 MB / 0.5511 GB, free: 11.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.4087, allocations: 4 kB / 0.5511 GB, free: 11.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.00459/0.4133, allocations: 2.933 MB / 0.554 GB, free: 8.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.4134, allocations: 8 kB / 0.554 GB, free: 8.262 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.878e-05/0.4134, allocations: 20 kB / 0.554 GB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00086/0.4143, allocations: 392.2 kB / 0.5544 GB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001665/0.4159, allocations: 449 kB / 0.5548 GB, free: 7.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005733/0.4217, allocations: 6.764 MB / 0.5614 GB, free: 312 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001472/0.4232, allocations: 127.8 kB / 0.5616 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001274/0.4233, allocations: 71.98 kB / 0.5616 GB, free: 112 kB / 398.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.001335/0.4247, allocations: 0.9045 MB / 0.5625 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003363/0.425, allocations: 209.3 kB / 0.5627 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004856/0.4299, allocations: 2.914 MB / 0.5656 GB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.4299, allocations: 16 kB / 0.5656 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.4299, allocations: 8 kB / 0.5656 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.667e-05/0.4299, allocations: 14.16 kB / 0.5656 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009597/0.4395, allocations: 6.15 MB / 0.5716 GB, free: 5.883 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.976e-06/0.4396, allocations: 4 kB / 0.5716 GB, free: 5.879 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/0.4406, allocations: 233 kB / 0.5718 GB, free: 5.664 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001981/0.4426, allocations: 0.818 MB / 0.5726 GB, free: 4.84 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001089/0.4427, allocations: 39.98 kB / 0.5727 GB, free: 4.801 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01187/0.4546, allocations: 10.76 MB / 0.5832 GB, free: 9.664 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.4547, allocations: 4 kB / 0.5832 GB, free: 9.66 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006634/0.4613, allocations: 4.179 MB / 0.5872 GB, free: 5.434 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001044/0.4624, allocations: 482.4 kB / 0.5877 GB, free: 4.941 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003092/0.4627, allocations: 36 kB / 0.5877 GB, free: 4.906 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001141/0.4638, allocations: 99.88 kB / 0.5878 GB, free: 4.809 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002829/0.4641, allocations: 120.9 kB / 0.588 GB, free: 4.695 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.4642, allocations: 43.98 kB / 0.588 GB, free: 4.652 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00186/0.4661, allocations: 1.345 MB / 0.5893 GB, free: 3.285 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4661, allocations: 4 kB / 0.5893 GB, free: 3.281 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001798/0.4679, allocations: 0.578 MB / 0.5899 GB, free: 2.703 MB / 430.1 MB 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.006772/0.4747, allocations: 4.828 MB / 0.5946 GB, free: 13.84 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005465/0.4802, allocations: 3.291 MB / 0.5978 GB, free: 10.55 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.4802, allocations: 4 kB / 0.5978 GB, free: 10.55 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002276/0.4825, allocations: 1.64 MB / 0.5994 GB, free: 8.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002443/0.4849, allocations: 0.5436 MB / 0.5999 GB, free: 8.379 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03093/0.5159, allocations: 23.98 MB / 0.6234 GB, free: 14.61 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001878/0.5178, allocations: 2.221 MB / 0.6255 GB, free: 12.36 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00148/0.5193, allocations: 467.9 kB / 0.626 GB, free: 11.91 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001379/0.5207, allocations: 1.136 MB / 0.6271 GB, free: 10.77 MB / 478.1 MB Notification: Performance of SimCode: time 5.01e-07/0.5207, allocations: 0 / 0.6271 GB, free: 10.77 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08828/0.609, allocations: 54.5 MB / 0.6803 GB, free: 4.734 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.12/10.73, allocations: 11.62 kB / 0.6803 GB, free: 4.723 MB / 0.5137 GB (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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches