Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008642/0.0008642, allocations: 76.08 kB / 20.67 MB, free: 3.879 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 157.1 kB / 23.94 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.861/0.861, allocations: 173.4 MB / 200.5 MB, free: 9.445 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.213e-06/1.213e-06, allocations: 0 / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.678e-06/1.089e-05, allocations: 2.281 kB / 318.4 MB, free: 6.375 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.006338/0.006349, allocations: 7.956 MB / 326.4 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003826/0.01017, allocations: 2.964 MB / 329.4 MB, free: 11.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000549/0.01072, allocations: 55.62 kB / 329.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001079/0.0118, allocations: 0.6638 MB / 330.1 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001341/0.01314, allocations: 0.7723 MB / 330.9 MB, free: 9.898 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004556/0.0136, allocations: 343.2 kB / 331.2 MB, free: 9.562 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00153/0.01513, allocations: 2.174 MB / 333.4 MB, free: 7.379 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007592/0.01589, allocations: 0.8011 MB / 334.2 MB, free: 6.527 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001097/0.01699, allocations: 1.353 MB / 335.5 MB, free: 5.172 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009055/0.01789, allocations: 0.9624 MB / 336.5 MB, free: 4.207 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001971/0.01809, allocations: 232 kB / 336.7 MB, free: 3.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003519/0.01844, allocations: 323.7 kB / 337 MB, free: 3.664 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004085/0.01885, allocations: 0.7166 MB / 337.7 MB, free: 2.945 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005244/0.01937, allocations: 0.7288 MB / 338.5 MB, free: 2.215 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001973/0.02135, allocations: 3.135 MB / 341.6 MB, free: 15.07 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.02135, allocations: 0 / 341.6 MB, free: 15.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.02135, allocations: 0 / 341.6 MB, free: 15.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.662e-05/0.02138, allocations: 0 / 341.6 MB, free: 15.07 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: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.002479/0.02386, allocations: 2.223 MB / 343.8 MB, free: 12.8 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.02389, allocations: 8.922 kB / 343.8 MB, free: 12.79 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001979/0.02409, allocations: 244.3 kB / 344.1 MB, free: 12.54 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003767/0.02447, allocations: 239.5 kB / 344.3 MB, free: 12.31 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001282/0.02575, allocations: 1.151 MB / 345.5 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.343e-05/0.02581, allocations: 115.4 kB / 345.6 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001547/0.02597, allocations: 156.4 kB / 345.7 MB, free: 10.85 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002096/0.02806, allocations: 2.088 MB / 347.8 MB, free: 8.695 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.963e-05/0.0281, allocations: 3.953 kB / 347.8 MB, free: 8.691 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.597e-05/0.0282, allocations: 64 kB / 347.9 MB, free: 8.629 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.046e-05/0.02826, allocations: 74.92 kB / 347.9 MB, free: 8.555 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001791/0.03005, allocations: 1.647 MB / 349.6 MB, free: 6.902 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006152/0.0362, allocations: 6.281 MB / 355.9 MB, free: 304 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005637/0.03677, allocations: 430.6 kB / 356.3 MB, free: 15.87 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002481/0.03701, allocations: 254.2 kB / 356.5 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001537/0.03717, allocations: 40.47 kB / 356.6 MB, free: 15.57 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.0372, allocations: 35.06 kB / 356.6 MB, free: 15.53 MB / 330.7 MB Notification: Performance of pre-optimization done (n=47): time 2.244e-06/0.0372, allocations: 4 kB / 356.6 MB, free: 15.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=63): time 0.004176/0.04138, allocations: 3.163 MB / 359.8 MB, free: 12.33 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001494/0.04287, allocations: 2.215 MB / 362 MB, free: 9.973 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001443/0.04431, allocations: 1.67 MB / 363.7 MB, free: 8.293 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.628e-05/0.04435, allocations: 37.7 kB / 363.7 MB, free: 8.25 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004977/0.04485, allocations: 1.045 MB / 364.8 MB, free: 7.195 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.04498, allocations: 242.1 kB / 365 MB, free: 6.957 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002765/0.04525, allocations: 319.3 kB / 365.3 MB, free: 6.637 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.402e-05/0.04532, allocations: 301.1 kB / 365.6 MB, free: 6.34 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005084/0.04583, allocations: 0.5192 MB / 366.1 MB, free: 5.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009006/0.04673, allocations: 1.465 MB / 367.6 MB, free: 3.891 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001559/0.04829, allocations: 2.135 MB / 369.7 MB, free: 1.289 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/0.0483, allocations: 12 kB / 369.7 MB, free: 1.277 MB / 330.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.002053/0.05035, allocations: 2.164 MB / 371.9 MB, free: 15.1 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.05037, allocations: 23.94 kB / 371.9 MB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.139e-05/0.05039, allocations: 32 kB / 371.9 MB, free: 15.04 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003/0.05069, allocations: 230.4 kB / 372.2 MB, free: 14.81 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000612/0.0513, allocations: 391.2 kB / 372.5 MB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009967/0.0523, allocations: 1.748 MB / 374.3 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006334/0.05293, allocations: 135.7 kB / 374.4 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.382e-05/0.05302, allocations: 95.98 kB / 374.5 MB, free: 12.33 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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 (204): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005437/0.05356, allocations: 0.6067 MB / 375.1 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001419/0.0537, allocations: 159 kB / 375.3 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001168/0.05487, allocations: 1.104 MB / 376.4 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.05488, allocations: 11.98 kB / 376.4 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.05488, allocations: 0 / 376.4 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.05488, allocations: 0 / 376.4 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003125/0.05801, allocations: 3.131 MB / 379.5 MB, free: 7.141 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.05802, allocations: 11.94 kB / 379.5 MB, free: 7.129 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002188/0.05823, allocations: 111.8 kB / 379.7 MB, free: 7.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003238/0.05856, allocations: 226.5 kB / 379.9 MB, free: 6.789 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.851e-05/0.05859, allocations: 16 kB / 379.9 MB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002334/0.06092, allocations: 3.831 MB / 383.7 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001222/0.06214, allocations: 2.054 MB / 385.8 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001571/0.06371, allocations: 1.739 MB / 387.5 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003036/0.06402, allocations: 234.9 kB / 387.7 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.237e-05/0.06411, allocations: 23.94 kB / 387.8 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003462/0.06446, allocations: 51.88 kB / 387.8 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002099/0.06467, allocations: 71.78 kB / 387.9 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.78e-05/0.06469, allocations: 23.98 kB / 387.9 MB, free: 14.29 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000927/0.06562, allocations: 1.07 MB / 389 MB, free: 13.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.06562, allocations: 0 / 389 MB, free: 13.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008768/0.0665, allocations: 383.9 kB / 389.4 MB, free: 12.85 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 1 ($STATESET1.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 (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00208/0.06858, allocations: 2.358 MB / 391.7 MB, free: 10.39 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001414/0.06999, allocations: 1.421 MB / 393.1 MB, free: 8.953 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.06999, allocations: 0 / 393.1 MB, free: 8.953 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006853/0.07068, allocations: 0.7488 MB / 393.9 MB, free: 8.18 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/0.0717, allocations: 404.3 kB / 394.3 MB, free: 7.789 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01565/0.08734, allocations: 15.27 MB / 409.5 MB, free: 7.277 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006505/0.08799, allocations: 0.8814 MB / 410.4 MB, free: 6.363 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006464/0.08864, allocations: 358 kB / 410.8 MB, free: 6.008 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005881/0.08923, allocations: 0.6175 MB / 411.4 MB, free: 5.391 MB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/0.08923, allocations: 0 / 411.4 MB, free: 5.391 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2028/0.2921, allocations: 38.71 MB / 450.1 MB, free: 117.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.394/9.687, allocations: 4.969 kB / 450.1 MB, free: 117.8 MB / 410.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv --start-time 0 --stop-time 0.04 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable smpm.is[1] in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv. Warning: Get data of variable smpm.is[1] from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv failed! Error: Could not read variable smpm.is[2] in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv. Warning: Get data of variable smpm.is[2] from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv failed! Error: Could not read variable constantSpeed.phi in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv. Warning: Get data of variable constantSpeed.phi from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.38133562169969]