Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.001351/0.001351, allocations: 109.6 kB / 21.18 MB, free: 0.6992 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.001461/0.001461, allocations: 216.7 kB / 24.5 MB, free: 4.027 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.466/1.466, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.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.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",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.002043/0.002043, allocations: 59.92 kB / 347.2 MB, free: 10.12 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2784, allocations: 49.16 MB / 396.4 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01076/0.2892, allocations: 11.76 MB / 408.1 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007105/0.2963, allocations: 3.246 MB / 411.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002165/0.2984, allocations: 43.44 kB / 411.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002629/0.3011, allocations: 0.6748 MB / 412.1 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00344/0.3045, allocations: 0.7247 MB / 412.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001553/0.306, allocations: 405.2 kB / 413.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004298/0.3103, allocations: 2.241 MB / 415.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001655/0.312, allocations: 0.6568 MB / 416.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002344/0.3143, allocations: 0.8687 MB / 417 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00229/0.3166, allocations: 0.9118 MB / 417.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006528/0.3173, allocations: 217.8 kB / 418.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001216/0.3185, allocations: 257.8 kB / 418.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004814/0.319, allocations: 436.7 kB / 418.8 MB, free: 9.703 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002392/0.3214, allocations: 1.012 MB / 419.8 MB, free: 8.992 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005172/0.3265, allocations: 2.69 MB / 422.5 MB, free: 6.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.3266, allocations: 0 / 422.5 MB, free: 6.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3266, allocations: 0 / 422.5 MB, free: 6.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001141/0.3267, allocations: 1.062 kB / 422.5 MB, free: 6.93 MB / 334.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.006672/0.3333, allocations: 2.046 MB / 424.5 MB, free: 5.414 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.353e-05/0.3334, allocations: 14.02 kB / 424.5 MB, free: 5.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004199/0.3338, allocations: 217.6 kB / 424.8 MB, free: 5.234 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001057/0.3349, allocations: 269.1 kB / 425 MB, free: 5.105 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002199/0.3371, allocations: 0.968 MB / 426 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001088/0.3372, allocations: 124.5 kB / 426.1 MB, free: 4.293 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002253/0.3374, allocations: 162.5 kB / 426.3 MB, free: 4.234 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002799/0.3402, allocations: 1.474 MB / 427.7 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.707e-05/0.3403, allocations: 16.2 kB / 427.8 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001273/0.3404, allocations: 65.7 kB / 427.8 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.441e-05/0.3404, allocations: 42.91 kB / 427.9 MB, free: 3.223 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002045/0.3425, allocations: 0.9745 MB / 428.8 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009471/0.3519, allocations: 6.38 MB / 435.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008459/0.3528, allocations: 376.1 kB / 435.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004381/0.3532, allocations: 206.1 kB / 435.8 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.994e-05/0.3533, allocations: 4.438 kB / 435.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005411/0.3538, allocations: 272.8 kB / 436.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.464e-06/0.3538, allocations: 0 / 436.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.003832/0.3576, allocations: 1.557 MB / 437.6 MB, free: 9.391 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001282/0.3578, allocations: 166.7 kB / 437.8 MB, free: 9.191 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002042/0.3598, allocations: 1.273 MB / 439 MB, free: 7.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.157e-05/0.3599, allocations: 37.7 kB / 439.1 MB, free: 7.859 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008425/0.3607, allocations: 0.8972 MB / 440 MB, free: 6.953 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002139/0.3609, allocations: 214.3 kB / 440.2 MB, free: 6.742 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003004/0.3612, allocations: 222.8 kB / 440.4 MB, free: 6.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.3614, allocations: 357.9 kB / 440.8 MB, free: 6.164 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000485/0.3619, allocations: 226.5 kB / 441 MB, free: 5.941 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009605/0.3629, allocations: 0.7995 MB / 441.8 MB, free: 4.867 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001613/0.3645, allocations: 1.117 MB / 442.9 MB, free: 3.477 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/0.3645, allocations: 8 kB / 442.9 MB, free: 3.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002221/0.3667, allocations: 1.18 MB / 444.1 MB, free: 2.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.815e-05/0.3668, allocations: 41.7 kB / 444.1 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.804e-05/0.3668, allocations: 23.94 kB / 444.1 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002485/0.367, allocations: 65.69 kB / 444.2 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008237/0.3679, allocations: 259.9 kB / 444.5 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002264/0.3701, allocations: 2.582 MB / 447 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001222/0.3714, allocations: 63.92 kB / 447.1 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/0.3715, allocations: 64 kB / 447.2 MB, free: 14.94 MB / 366.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.0006418/0.3721, allocations: 361.3 kB / 447.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002283/0.3723, allocations: 143 kB / 447.7 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001086/0.3734, allocations: 0.5436 MB / 448.2 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.044e-06/0.3734, allocations: 4 kB / 448.2 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.3734, allocations: 3.938 kB / 448.2 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.3734, allocations: 7.984 kB / 448.2 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003031/0.3765, allocations: 1.83 MB / 450.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/0.3765, allocations: 7.938 kB / 450.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004352/0.3769, allocations: 108.3 kB / 450.2 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001679/0.3771, allocations: 45.64 kB / 450.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.286e-05/0.3771, allocations: 16 kB / 450.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00203/0.3791, allocations: 2.55 MB / 452.8 MB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.3792, allocations: 4 kB / 452.8 MB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001505/0.3807, allocations: 0.9343 MB / 453.7 MB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005313/0.3812, allocations: 191 kB / 453.9 MB, free: 7.758 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001635/0.3813, allocations: 19.98 kB / 453.9 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005395/0.3819, allocations: 23.98 kB / 453.9 MB, free: 7.715 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/0.382, allocations: 67.56 kB / 454 MB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.213e-05/0.382, allocations: 16 kB / 454 MB, free: 7.633 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001283/0.3833, allocations: 0.85 MB / 454.9 MB, free: 6.781 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3833, allocations: 0 / 454.9 MB, free: 6.781 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001293/0.3846, allocations: 304 kB / 455.2 MB, free: 6.484 MB / 366.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.001982/0.3866, allocations: 1.495 MB / 456.7 MB, free: 4.914 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001664/0.3883, allocations: 0.896 MB / 457.6 MB, free: 3.98 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.3883, allocations: 0 / 457.6 MB, free: 3.98 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007277/0.389, allocations: 471.5 kB / 458 MB, free: 3.496 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001761/0.3908, allocations: 336.9 kB / 458.4 MB, free: 3.168 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01717/0.4079, allocations: 10.93 MB / 469.3 MB, free: 7.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009344/0.4089, allocations: 1.178 MB / 470.5 MB, free: 6.223 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007696/0.4096, allocations: 171.3 kB / 470.6 MB, free: 6.051 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007757/0.4104, allocations: 0.5657 MB / 471.2 MB, free: 5.484 MB / 382.1 MB Notification: Performance of SimCode: time 1.904e-06/0.4104, allocations: 0 / 471.2 MB, free: 5.484 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08155/0.492, allocations: 28.78 MB / 500 MB, free: 8.605 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.55/14.04, allocations: 7.922 kB / 500 MB, free: 8.598 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_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_DCMachines_DCPM_QuasiStationary.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia1.w in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.csv. Warning: Get data of variable loadInertia1.w from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.csv failed! Error: Could not read variable loadInertia2.w in file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.csv. Warning: Get data of variable loadInertia2.w from file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.12611201099935]