Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001911/0.001911, allocations: 115.5 kB / 18.45 MB, free: 4.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002343/0.002343, allocations: 215.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.433/1.433, allocations: 207.6 MB / 231.8 MB, free: 4.055 MB / 174.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001738/0.001738, allocations: 55.92 kB / 342.3 MB, free: 9.98 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08443/0.08616, allocations: 49.14 MB / 391.4 MB, free: 8.676 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01383/0.1, allocations: 10.93 MB / 402.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007165/0.1072, allocations: 3.681 MB / 406.1 MB, free: 10 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001438/0.1086, allocations: 75.5 kB / 406.1 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002184/0.1108, allocations: 0.8736 MB / 407 MB, free: 9.047 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002883/0.1137, allocations: 0.9048 MB / 407.9 MB, free: 8.137 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00123/0.1149, allocations: 463.3 kB / 408.4 MB, free: 7.684 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004095/0.119, allocations: 2.962 MB / 411.3 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002794/0.1218, allocations: 1.942 MB / 413.3 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00221/0.124, allocations: 1.406 MB / 414.7 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002713/0.1267, allocations: 1.79 MB / 416.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000731/0.1274, allocations: 372 kB / 416.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001104/0.1285, allocations: 479.8 kB / 417.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00123/0.1298, allocations: 1.083 MB / 418.4 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00229/0.1321, allocations: 1.672 MB / 420 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005792/0.1379, allocations: 4.9 MB / 424.9 MB, free: 6.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.1379, allocations: 0 / 424.9 MB, free: 6.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1379, allocations: 0 / 424.9 MB, free: 6.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001239/0.138, allocations: 0 / 424.9 MB, free: 6.98 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: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.008212/0.1462, allocations: 3.469 MB / 428.4 MB, free: 3.441 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/0.1463, allocations: 11.89 kB / 428.4 MB, free: 3.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006546/0.1469, allocations: 363 kB / 428.8 MB, free: 3.066 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009693/0.1479, allocations: 358.8 kB / 429.1 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00338/0.1513, allocations: 1.719 MB / 430.8 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001678/0.1514, allocations: 193.2 kB / 431 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004347/0.1519, allocations: 248 kB / 431.3 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00639/0.1582, allocations: 3.279 MB / 434.6 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.405e-05/0.1583, allocations: 15.94 kB / 434.6 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002763/0.1586, allocations: 96 kB / 434.7 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001518/0.1588, allocations: 132.9 kB / 434.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005606/0.1644, allocations: 2.744 MB / 437.5 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01777/0.1821, allocations: 10.43 MB / 448 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002061/0.1842, allocations: 1.28 MB / 449.3 MB, free: 14.01 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001284/0.1855, allocations: 0.6993 MB / 450 MB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003136/0.1858, allocations: 204.2 kB / 450.2 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.438e-05/0.1858, allocations: 43.56 kB / 450.2 MB, free: 13.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 2.525e-06/0.1858, allocations: 0 / 450.2 MB, free: 13.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01703/0.2029, allocations: 7.078 MB / 457.3 MB, free: 5.832 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.085e-05/0.2029, allocations: 64.41 kB / 457.3 MB, free: 5.758 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00288/0.2058, allocations: 1.793 MB / 459.1 MB, free: 3.965 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002067/0.206, allocations: 45.7 kB / 459.2 MB, free: 3.914 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001102/0.2071, allocations: 1.314 MB / 460.5 MB, free: 2.586 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004505/0.2076, allocations: 440.3 kB / 460.9 MB, free: 2.152 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005255/0.2081, allocations: 295.4 kB / 461.2 MB, free: 1.855 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.2082, allocations: 317 kB / 461.5 MB, free: 1.543 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001329/0.2096, allocations: 0.7691 MB / 462.3 MB, free: 0.7734 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1665/0.3761, allocations: 1.295 MB / 463.6 MB, free: 62.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003366/0.3795, allocations: 2.213 MB / 465.8 MB, free: 61.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.002e-05/0.3795, allocations: 4.5 kB / 465.8 MB, free: 61.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004182/0.3837, allocations: 2.483 MB / 468.3 MB, free: 60.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.097e-05/0.3837, allocations: 14.03 kB / 468.3 MB, free: 60.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.416e-05/0.3837, allocations: 17.62 kB / 468.3 MB, free: 60.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006046/0.3843, allocations: 234.9 kB / 468.5 MB, free: 60.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001471/0.3858, allocations: 422 kB / 469 MB, free: 60.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00214/0.3879, allocations: 3.235 MB / 472.2 MB, free: 57.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001519/0.3895, allocations: 127.9 kB / 472.3 MB, free: 57.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001593/0.3896, allocations: 74.84 kB / 472.4 MB, free: 57.8 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001317/0.3909, allocations: 0.825 MB / 473.2 MB, free: 57.35 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003802/0.3913, allocations: 194.3 kB / 473.4 MB, free: 57.35 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003269/0.3946, allocations: 2.029 MB / 475.4 MB, free: 56.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.3946, allocations: 12.88 kB / 475.4 MB, free: 56.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.3946, allocations: 2.344 kB / 475.4 MB, free: 56.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.676e-05/0.3946, allocations: 6.469 kB / 475.5 MB, free: 56.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006876/0.4015, allocations: 4.732 MB / 480.2 MB, free: 54.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.4015, allocations: 7.094 kB / 480.2 MB, free: 54.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.4025, allocations: 262.3 kB / 480.4 MB, free: 54.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005007/0.403, allocations: 206.2 kB / 480.6 MB, free: 54.52 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.754e-05/0.4031, allocations: 23.5 kB / 480.7 MB, free: 54.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001815/0.4049, allocations: 3.216 MB / 483.9 MB, free: 51.55 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.4049, allocations: 10.08 kB / 483.9 MB, free: 51.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003773/0.4087, allocations: 3.131 MB / 487 MB, free: 50.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007872/0.4095, allocations: 435.2 kB / 487.5 MB, free: 50 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002346/0.4097, allocations: 27.41 kB / 487.5 MB, free: 49.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009668/0.4107, allocations: 93.97 kB / 487.6 MB, free: 49.97 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001758/0.4109, allocations: 82.69 kB / 487.7 MB, free: 49.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-05/0.4109, allocations: 31.28 kB / 487.7 MB, free: 49.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001537/0.4125, allocations: 1.228 MB / 488.9 MB, free: 49.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4125, allocations: 0 / 488.9 MB, free: 49.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001503/0.414, allocations: 488.6 kB / 489.4 MB, free: 49.34 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004012/0.418, allocations: 3.769 MB / 493.2 MB, free: 46.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00312/0.4211, allocations: 2.266 MB / 495.4 MB, free: 43.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.4211, allocations: 448 / 495.4 MB, free: 43.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001472/0.4226, allocations: 1.268 MB / 496.7 MB, free: 42.55 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002264/0.4249, allocations: 0.4998 MB / 497.2 MB, free: 42.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02222/0.4471, allocations: 18.76 MB / 0.5039 GB, free: 22.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001221/0.4483, allocations: 2.012 MB / 0.5058 GB, free: 20.57 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001191/0.4495, allocations: 0.496 MB / 0.5063 GB, free: 20.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001045/0.4505, allocations: 1.011 MB / 0.5073 GB, free: 19.05 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4505, allocations: 0 / 0.5073 GB, free: 19.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09231/0.5428, allocations: 46.33 MB / 0.5525 GB, free: 4.594 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.36/13.9, allocations: 9.766 kB / 0.5525 GB, free: 4.586 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable inertiaLoad.w in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable inertiaLoad.w from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv failed! Error: Could not read variable speedSensor.flange.phi in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv. Warning: Get data of variable speedSensor.flange.phi from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.73078808300488]