Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001734/0.001734, allocations: 112 kB / 20.43 MB, free: 1.309 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.002128/0.002128, allocations: 188.3 kB / 23.72 MB, free: 4.559 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.434/1.434, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001724/0.001724, allocations: 47.92 kB / 370.5 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.278, allocations: 52.19 MB / 422.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01397/0.292, allocations: 11.83 MB / 434.5 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006559/0.2985, allocations: 3.223 MB / 437.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001524/0.3001, allocations: 39.81 kB / 437.7 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001925/0.302, allocations: 0.6797 MB / 438.4 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002082/0.3041, allocations: 0.7251 MB / 439.1 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009607/0.305, allocations: 403.5 kB / 439.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003111/0.3081, allocations: 2.261 MB / 441.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001085/0.3092, allocations: 0.642 MB / 442.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001336/0.3105, allocations: 0.8717 MB / 443.3 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001225/0.3118, allocations: 0.91 MB / 444.2 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002864/0.3121, allocations: 220 kB / 444.4 MB, free: 8.648 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005038/0.3126, allocations: 260 kB / 444.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003748/0.3129, allocations: 430.4 kB / 445.1 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001032/0.314, allocations: 1.023 MB / 446.1 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003062/0.317, allocations: 2.689 MB / 448.8 MB, free: 4.246 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.317, allocations: 0 / 448.8 MB, free: 4.246 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.317, allocations: 0 / 448.8 MB, free: 4.246 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.794e-05/0.3171, allocations: 0 / 448.8 MB, free: 4.246 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003731/0.3208, allocations: 2.037 MB / 450.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.3209, allocations: 8.031 kB / 450.9 MB, free: 2.152 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002625/0.3211, allocations: 224.1 kB / 451.1 MB, free: 1.922 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007646/0.3219, allocations: 267.5 kB / 451.3 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001725/0.3236, allocations: 0.9687 MB / 452.3 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.705e-05/0.3237, allocations: 119.2 kB / 452.4 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002045/0.3239, allocations: 159.9 kB / 452.6 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002472/0.3264, allocations: 1.484 MB / 454.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.564e-05/0.3264, allocations: 7.953 kB / 454.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001224/0.3266, allocations: 60 kB / 454.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.556e-05/0.3266, allocations: 44 kB / 454.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001847/0.3284, allocations: 0.9746 MB / 455.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008269/0.3367, allocations: 6.388 MB / 461.5 MB, free: 7.004 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008045/0.3375, allocations: 380.1 kB / 461.9 MB, free: 6.621 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004196/0.3379, allocations: 198.1 kB / 462.1 MB, free: 6.426 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.722e-05/0.338, allocations: 8.422 kB / 462.1 MB, free: 6.418 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005127/0.3385, allocations: 268.8 kB / 462.4 MB, free: 6.133 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.144e-06/0.3385, allocations: 0 / 462.4 MB, free: 6.133 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.00311/0.3416, allocations: 1.56 MB / 463.9 MB, free: 4.531 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.3417, allocations: 166.7 kB / 464.1 MB, free: 4.332 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001739/0.3434, allocations: 1.277 MB / 465.4 MB, free: 3.039 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.423e-05/0.3435, allocations: 41.64 kB / 465.4 MB, free: 2.992 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007602/0.3443, allocations: 0.8934 MB / 466.3 MB, free: 2.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001736/0.3444, allocations: 214.3 kB / 466.5 MB, free: 1.879 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002797/0.3447, allocations: 222.8 kB / 466.7 MB, free: 1.656 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.3449, allocations: 353.9 kB / 467.1 MB, free: 1.305 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004565/0.3453, allocations: 234.5 kB / 467.3 MB, free: 1.074 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009009/0.3462, allocations: 0.8033 MB / 468.1 MB, free: 0 / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00144/0.3477, allocations: 1.113 MB / 469.2 MB, free: 14.62 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-06/0.3477, allocations: 4 kB / 469.2 MB, free: 14.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002014/0.3497, allocations: 1.176 MB / 470.4 MB, free: 13.42 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.147e-05/0.3498, allocations: 41.7 kB / 470.5 MB, free: 13.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.7e-05/0.3498, allocations: 23.94 kB / 470.5 MB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002473/0.35, allocations: 61.7 kB / 470.5 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007719/0.3508, allocations: 267.9 kB / 470.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002269/0.3531, allocations: 2.579 MB / 473.4 MB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001025/0.3541, allocations: 75.81 kB / 473.4 MB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.058e-05/0.3542, allocations: 56 kB / 473.5 MB, free: 10.09 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006013/0.3548, allocations: 359.7 kB / 473.9 MB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001794/0.355, allocations: 139.1 kB / 474 MB, free: 9.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001156/0.3561, allocations: 0.5474 MB / 474.5 MB, free: 9.023 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.3561, allocations: 8 kB / 474.5 MB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3561, allocations: 0 / 474.5 MB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.3561, allocations: 3.984 kB / 474.6 MB, free: 9.012 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002899/0.359, allocations: 1.826 MB / 476.4 MB, free: 7.074 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.359, allocations: 4.469 kB / 476.4 MB, free: 7.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004312/0.3595, allocations: 107.8 kB / 476.5 MB, free: 6.965 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001578/0.3596, allocations: 45.69 kB / 476.5 MB, free: 6.914 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.439e-05/0.3597, allocations: 16 kB / 476.5 MB, free: 6.898 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002079/0.3617, allocations: 2.554 MB / 479.1 MB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/0.3618, allocations: 7.938 kB / 479.1 MB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001577/0.3633, allocations: 0.9268 MB / 480 MB, free: 3.109 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005781/0.3639, allocations: 183 kB / 480.2 MB, free: 2.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002702/0.3642, allocations: 19.98 kB / 480.2 MB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006334/0.3648, allocations: 31.98 kB / 480.3 MB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001245/0.3649, allocations: 59.78 kB / 480.3 MB, free: 2.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.571e-05/0.365, allocations: 20 kB / 480.3 MB, free: 2.801 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001498/0.3665, allocations: 0.8461 MB / 481.2 MB, free: 1.953 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3665, allocations: 0 / 481.2 MB, free: 1.953 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00136/0.3678, allocations: 304 kB / 481.5 MB, free: 1.656 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,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.002109/0.3699, allocations: 1.507 MB / 483 MB, free: 72 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00175/0.3717, allocations: 0.8882 MB / 483.9 MB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.3717, allocations: 5.875 kB / 483.9 MB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007562/0.3725, allocations: 469.7 kB / 484.3 MB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001731/0.3742, allocations: 328.1 kB / 484.7 MB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01708/0.3913, allocations: 10.94 MB / 495.6 MB, free: 2.57 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008715/0.3921, allocations: 1.178 MB / 496.8 MB, free: 1.363 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005731/0.3927, allocations: 171.3 kB / 496.9 MB, free: 1.191 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007135/0.3934, allocations: 0.5735 MB / 497.5 MB, free: 0.6172 MB / 398.1 MB Notification: Performance of SimCode: time 9.71e-07/0.3934, allocations: 3.938 kB / 497.5 MB, free: 0.6133 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07842/0.4718, allocations: 28.74 MB / 0.5139 GB, free: 4.188 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.1/14.57, allocations: 3.984 kB / 0.5139 GB, free: 4.184 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 19.28247271385044]