Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001263/0.001263, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001527/0.001527, allocations: 206.1 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.373/1.373, allocations: 230.6 MB / 258.3 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 47.92 kB / 378.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2609, allocations: 53.36 MB / 431.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01441/0.2753, allocations: 12.24 MB / 444.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007237/0.2825, allocations: 3.326 MB / 447.5 MB, free: 7.211 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002481/0.285, allocations: 39.88 kB / 447.5 MB, free: 7.172 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00241/0.2874, allocations: 0.6907 MB / 448.2 MB, free: 6.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002802/0.2902, allocations: 0.7911 MB / 449 MB, free: 5.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001149/0.2914, allocations: 399.5 kB / 449.4 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003215/0.2946, allocations: 2.424 MB / 451.8 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001041/0.2956, allocations: 0.6539 MB / 452.5 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001314/0.2969, allocations: 0.934 MB / 453.4 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001159/0.2981, allocations: 0.9839 MB / 454.4 MB, free: 232 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002772/0.2984, allocations: 232 kB / 454.6 MB, free: 0 / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000463/0.2988, allocations: 260 kB / 454.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003498/0.2992, allocations: 466.3 kB / 455.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001007/0.3002, allocations: 1.077 MB / 456.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003026/0.3032, allocations: 2.841 MB / 459.3 MB, free: 11.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3032, allocations: 0 / 459.3 MB, free: 11.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3032, allocations: 4 kB / 459.3 MB, free: 11.35 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.897e-05/0.3032, allocations: 4 kB / 459.3 MB, free: 11.35 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003781/0.307, allocations: 2.137 MB / 461.4 MB, free: 9.168 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.3071, allocations: 8.031 kB / 461.4 MB, free: 9.16 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.291e-05/0.3071, allocations: 43.28 kB / 461.5 MB, free: 9.117 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000257/0.3074, allocations: 228.1 kB / 461.7 MB, free: 8.883 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008826/0.3083, allocations: 295.4 kB / 462 MB, free: 8.594 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001896/0.3102, allocations: 1.048 MB / 463 MB, free: 7.504 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.896e-05/0.3103, allocations: 119 kB / 463.1 MB, free: 7.387 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002063/0.3105, allocations: 156 kB / 463.3 MB, free: 7.234 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002452/0.3129, allocations: 1.496 MB / 464.8 MB, free: 5.676 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.225e-05/0.313, allocations: 19.88 kB / 464.8 MB, free: 5.656 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001198/0.3131, allocations: 64 kB / 464.9 MB, free: 5.594 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-05/0.3131, allocations: 39.94 kB / 464.9 MB, free: 5.555 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002024/0.3151, allocations: 1.049 MB / 466 MB, free: 4.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008291/0.3234, allocations: 6.097 MB / 472.1 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001505/0.3249, allocations: 0.5773 MB / 472.6 MB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009258/0.3259, allocations: 430.5 kB / 473.1 MB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.344e-05/0.3259, allocations: 4.656 kB / 473.1 MB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.155e-05/0.326, allocations: 51.22 kB / 473.1 MB, free: 13.03 MB / 382.1 MB Notification: Performance of pre-optimization done (n=66): time 2.695e-06/0.326, allocations: 0 / 473.1 MB, free: 13.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.005002/0.331, allocations: 2.173 MB / 475.3 MB, free: 10.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.078e-05/0.331, allocations: 115.4 kB / 475.4 MB, free: 10.69 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001827/0.3329, allocations: 1.306 MB / 476.7 MB, free: 9.367 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.893e-05/0.3329, allocations: 37.7 kB / 476.7 MB, free: 9.324 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006635/0.3336, allocations: 0.8671 MB / 477.6 MB, free: 8.449 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002198/0.3338, allocations: 277.8 kB / 477.9 MB, free: 8.176 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002907/0.3341, allocations: 206.8 kB / 478.1 MB, free: 7.969 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.3343, allocations: 345.9 kB / 478.4 MB, free: 7.625 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005953/0.3349, allocations: 286.5 kB / 478.7 MB, free: 7.344 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009125/0.3358, allocations: 0.7385 MB / 479.4 MB, free: 6.395 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001575/0.3374, allocations: 1.081 MB / 480.5 MB, free: 5.105 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/0.3374, allocations: 4 kB / 480.5 MB, free: 5.102 MB / 382.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00241/0.3398, allocations: 1.26 MB / 481.8 MB, free: 3.824 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/0.3398, allocations: 14.81 kB / 481.8 MB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.24e-05/0.3398, allocations: 19.98 kB / 481.8 MB, free: 3.793 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005104/0.3403, allocations: 139 kB / 481.9 MB, free: 3.648 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008244/0.3412, allocations: 255.6 kB / 482.2 MB, free: 3.398 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004055/0.3452, allocations: 4.344 MB / 486.5 MB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009789/0.3462, allocations: 51.97 kB / 486.6 MB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.223e-05/0.3463, allocations: 55.94 kB / 486.6 MB, free: 14.61 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * 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): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0005953/0.3469, allocations: 361.4 kB / 487 MB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002232/0.3471, allocations: 147.1 kB / 487.1 MB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001867/0.349, allocations: 0.8256 MB / 488 MB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.349, allocations: 4 kB / 488 MB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.689e-06/0.349, allocations: 7.984 kB / 488 MB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.349, allocations: 0 / 488 MB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004256/0.3532, allocations: 2.289 MB / 490.3 MB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.3533, allocations: 4 kB / 490.3 MB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005776/0.3538, allocations: 140.1 kB / 490.4 MB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004668/0.3543, allocations: 134.4 kB / 490.5 MB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.598e-05/0.3543, allocations: 16 kB / 490.6 MB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00436/0.3587, allocations: 4.48 MB / 495 MB, free: 5.719 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.3587, allocations: 8.125 kB / 495 MB, free: 5.711 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002637/0.3613, allocations: 1.309 MB / 496.4 MB, free: 4.324 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006994/0.362, allocations: 207 kB / 496.6 MB, free: 4.121 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003077/0.3624, allocations: 20 kB / 496.6 MB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006339/0.363, allocations: 35.97 kB / 496.6 MB, free: 4.066 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.3631, allocations: 72.27 kB / 496.7 MB, free: 3.996 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.41e-05/0.3632, allocations: 24.17 kB / 496.7 MB, free: 3.973 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001428/0.3646, allocations: 0.8781 MB / 497.6 MB, free: 3.094 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3646, allocations: 0 / 497.6 MB, free: 3.094 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0012/0.3658, allocations: 324 kB / 497.9 MB, free: 2.777 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * 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): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002864/0.3687, allocations: 1.889 MB / 499.8 MB, free: 0.8086 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002095/0.3708, allocations: 1.084 MB / 0.4891 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.3708, allocations: 0 / 0.4891 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00112/0.3719, allocations: 0.6961 MB / 0.4898 GB, free: 14.96 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00183/0.3737, allocations: 370.8 kB / 0.4902 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02075/0.3945, allocations: 11.72 MB / 0.5016 GB, free: 2.18 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001152/0.3956, allocations: 1.217 MB / 0.5028 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007112/0.3963, allocations: 171.6 kB / 0.503 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008509/0.3972, allocations: 0.6125 MB / 0.5036 GB, free: 152 kB / 414.1 MB Notification: Performance of SimCode: time 1.273e-06/0.3972, allocations: 0 / 0.5036 GB, free: 152 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07932/0.4765, allocations: 32.25 MB / 0.5351 GB, free: 244 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.97/15.45, allocations: 7.734 kB / 0.5351 GB, free: 240 kB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 21.53185395197943]