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.001723/0.001723, allocations: 108.6 kB / 21.22 MB, free: 0.7266 MB / 14.72 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.001966/0.001966, allocations: 187.5 kB / 24.51 MB, free: 4.078 MB / 14.72 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 1.416/1.416, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001565, allocations: 47.92 kB / 371.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.3005, allocations: 52.19 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.011/0.3115, allocations: 9.083 MB / 432.5 MB, free: 5.469 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005863/0.3174, allocations: 3.166 MB / 435.7 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001159/0.3185, allocations: 51.69 kB / 435.7 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001893/0.3204, allocations: 0.7221 MB / 436.4 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002137/0.3226, allocations: 0.7496 MB / 437.2 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007464/0.3233, allocations: 347.3 kB / 437.5 MB, free: 436 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00257/0.3259, allocations: 2.108 MB / 439.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001189/0.3271, allocations: 0.8246 MB / 440.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001273/0.3284, allocations: 0.9421 MB / 441.4 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001864/0.3302, allocations: 1.156 MB / 442.6 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003531/0.3306, allocations: 232 kB / 442.8 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006038/0.3312, allocations: 323.8 kB / 443.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007146/0.3319, allocations: 0.6817 MB / 443.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001138/0.333, allocations: 1.081 MB / 444.9 MB, free: 9.016 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003563/0.3366, allocations: 3.118 MB / 448 MB, free: 5.887 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.3366, allocations: 4 kB / 448 MB, free: 5.883 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3366, allocations: 0 / 448 MB, free: 5.883 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.71e-05/0.3367, allocations: 0 / 448 MB, free: 5.883 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: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.004379/0.341, allocations: 2.239 MB / 450.2 MB, free: 3.602 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.3411, allocations: 12.03 kB / 450.2 MB, free: 3.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.33e-05/0.3411, allocations: 43.2 kB / 450.3 MB, free: 3.547 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002883/0.3414, allocations: 236.3 kB / 450.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005971/0.342, allocations: 235.6 kB / 450.7 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002064/0.3441, allocations: 1.16 MB / 451.9 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/0.3442, allocations: 115 kB / 452 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002268/0.3444, allocations: 152 kB / 452.2 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003186/0.3476, allocations: 2.008 MB / 454.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.649e-05/0.3476, allocations: 3.953 kB / 454.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001442/0.3478, allocations: 67.91 kB / 454.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.99e-05/0.3479, allocations: 78.91 kB / 454.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00271/0.3506, allocations: 1.643 MB / 456 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01021/0.3608, allocations: 6.781 MB / 462.7 MB, free: 6.648 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000797/0.3616, allocations: 429.4 kB / 463.2 MB, free: 6.215 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003822/0.362, allocations: 250.6 kB / 463.4 MB, free: 5.969 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000183/0.3622, allocations: 44.34 kB / 463.5 MB, free: 5.926 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.3622, allocations: 35 kB / 463.5 MB, free: 5.883 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.525e-06/0.3622, allocations: 0 / 463.5 MB, free: 5.883 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.007124/0.3693, allocations: 3.161 MB / 466.6 MB, free: 2.684 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002484/0.3718, allocations: 2.235 MB / 468.9 MB, free: 312 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002499/0.3743, allocations: 1.623 MB / 470.5 MB, free: 14.67 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001021/0.3744, allocations: 37.7 kB / 470.5 MB, free: 14.63 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008329/0.3752, allocations: 1.049 MB / 471.6 MB, free: 13.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002403/0.3755, allocations: 250 kB / 471.8 MB, free: 13.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004384/0.3759, allocations: 323.3 kB / 472.1 MB, free: 13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.376, allocations: 305.1 kB / 472.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007986/0.3768, allocations: 0.5114 MB / 473 MB, free: 12.19 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001559/0.3784, allocations: 1.476 MB / 474.4 MB, free: 10.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00257/0.381, allocations: 2.13 MB / 476.6 MB, free: 7.648 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-05/0.381, allocations: 8 kB / 476.6 MB, free: 7.641 MB / 382.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003565/0.3845, allocations: 2.162 MB / 478.7 MB, free: 5.461 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.576e-05/0.3846, allocations: 23.98 kB / 478.8 MB, free: 5.438 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.242e-05/0.3846, allocations: 32 kB / 478.8 MB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005557/0.3852, allocations: 235 kB / 479 MB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001093/0.3863, allocations: 391.2 kB / 479.4 MB, free: 4.785 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001722/0.388, allocations: 1.745 MB / 481.1 MB, free: 2.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0013/0.3893, allocations: 143.7 kB / 481.3 MB, free: 2.777 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001238/0.3894, allocations: 95.94 kB / 481.4 MB, free: 2.684 MB / 382.1 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.0009304/0.3903, allocations: 0.5906 MB / 482 MB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002877/0.3906, allocations: 162.9 kB / 482.1 MB, free: 1.922 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001961/0.3926, allocations: 1.108 MB / 483.2 MB, free: 0.7969 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.395e-06/0.3926, allocations: 8 kB / 483.2 MB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.3926, allocations: 0 / 483.2 MB, free: 0.7891 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.3926, allocations: 3.984 kB / 483.2 MB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005606/0.3982, allocations: 3.305 MB / 486.6 MB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.3982, allocations: 4.656 kB / 486.6 MB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004138/0.3986, allocations: 107.8 kB / 486.7 MB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006138/0.3992, allocations: 226.4 kB / 486.9 MB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.598e-05/0.3993, allocations: 20 kB / 486.9 MB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004142/0.4034, allocations: 3.847 MB / 490.8 MB, free: 8.891 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002205/0.4056, allocations: 2.07 MB / 492.8 MB, free: 6.688 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002751/0.4084, allocations: 1.75 MB / 494.6 MB, free: 4.848 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000677/0.4091, allocations: 242.8 kB / 494.8 MB, free: 4.609 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001733/0.4092, allocations: 19.98 kB / 494.8 MB, free: 4.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006399/0.4099, allocations: 48.02 kB / 494.9 MB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.41, allocations: 67.7 kB / 494.9 MB, free: 4.477 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.343e-05/0.4101, allocations: 28 kB / 495 MB, free: 4.449 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001664/0.4117, allocations: 1.074 MB / 496 MB, free: 3.379 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4117, allocations: 0 / 496 MB, free: 3.379 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001667/0.4134, allocations: 383.9 kB / 496.4 MB, free: 3.004 MB / 398.1 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.003165/0.4166, allocations: 2.372 MB / 498.8 MB, free: 0.5352 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002632/0.4192, allocations: 1.417 MB / 0.4885 GB, free: 15.1 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.4192, allocations: 0 / 0.4885 GB, free: 15.1 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001262/0.4205, allocations: 0.7451 MB / 0.4892 GB, free: 14.33 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001934/0.4224, allocations: 418.5 kB / 0.4896 GB, free: 13.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02215/0.4446, allocations: 15.3 MB / 0.5045 GB, free: 13.39 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001207/0.4458, allocations: 1.465 MB / 0.506 GB, free: 11.89 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001001/0.4468, allocations: 354 kB / 0.5063 GB, free: 11.54 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008428/0.4476, allocations: 0.6203 MB / 0.5069 GB, free: 10.92 MB / 430.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4476, allocations: 0 / 0.5069 GB, free: 10.92 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08436/0.532, allocations: 37.86 MB / 0.5439 GB, free: 5.43 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.67/16.2, allocations: 6.641 kB / 0.5439 GB, free: 5.426 MB / 462.1 MB " [Timeout remaining time 644] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.04 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins1/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.967904903984163]