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.001741/0.001741, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.002171/0.002171, allocations: 216.1 kB / 24.47 MB, free: 3.777 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.386/1.386, allocations: 207.7 MB / 235.3 MB, free: 9.805 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.002565/0.002565, allocations: 62.56 kB / 347.2 MB, free: 9.891 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2769, allocations: 49.16 MB / 396.4 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01175/0.2887, allocations: 10.16 MB / 406.5 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005812/0.2945, allocations: 3.051 MB / 409.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001316/0.2958, allocations: 43.44 kB / 409.6 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001887/0.2977, allocations: 0.6268 MB / 410.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001966/0.2996, allocations: 0.7274 MB / 411 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009216/0.3006, allocations: 407.1 kB / 411.4 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002848/0.3034, allocations: 2.244 MB / 413.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001023/0.3044, allocations: 0.6096 MB / 414.2 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001396/0.3058, allocations: 0.8647 MB / 415.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001097/0.3069, allocations: 0.7821 MB / 415.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002748/0.3072, allocations: 218 kB / 416.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005019/0.3077, allocations: 250.5 kB / 416.3 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003691/0.3081, allocations: 438.2 kB / 416.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009247/0.309, allocations: 0.8212 MB / 417.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003002/0.312, allocations: 2.71 MB / 420.3 MB, free: 9.129 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.312, allocations: 0 / 420.3 MB, free: 9.129 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.312, allocations: 0 / 420.3 MB, free: 9.129 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.313e-05/0.312, allocations: 1.125 kB / 420.3 MB, free: 9.129 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.003797/0.3158, allocations: 2.035 MB / 422.3 MB, free: 7.625 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.3159, allocations: 17.48 kB / 422.3 MB, free: 7.617 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002577/0.3161, allocations: 225.5 kB / 422.5 MB, free: 7.434 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008098/0.3169, allocations: 269.8 kB / 422.8 MB, free: 7.305 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001926/0.3189, allocations: 0.9675 MB / 423.8 MB, free: 6.555 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001038/0.319, allocations: 117.4 kB / 423.9 MB, free: 6.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002047/0.3192, allocations: 161.6 kB / 424.1 MB, free: 6.441 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002562/0.3217, allocations: 1.588 MB / 425.6 MB, free: 5.363 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.813e-05/0.3218, allocations: 8.203 kB / 425.6 MB, free: 5.359 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001255/0.3219, allocations: 70.48 kB / 425.7 MB, free: 5.305 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.496e-05/0.322, allocations: 38.34 kB / 425.8 MB, free: 5.305 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001843/0.3238, allocations: 0.9712 MB / 426.7 MB, free: 4.457 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008645/0.3324, allocations: 5.948 MB / 432.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008408/0.3333, allocations: 364.6 kB / 433 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004337/0.3337, allocations: 202.1 kB / 433.2 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.407e-05/0.3338, allocations: 4.438 kB / 433.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000582/0.3343, allocations: 320.2 kB / 433.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.254e-06/0.3343, allocations: 8 kB / 433.6 MB, free: 13.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.003718/0.3381, allocations: 1.553 MB / 435.1 MB, free: 11.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001512/0.3382, allocations: 162.7 kB / 435.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001965/0.3402, allocations: 1.308 MB / 436.6 MB, free: 10.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.765e-05/0.3402, allocations: 37.7 kB / 436.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008938/0.3411, allocations: 0.8973 MB / 437.5 MB, free: 9.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002068/0.3413, allocations: 218.2 kB / 437.7 MB, free: 8.965 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002989/0.3416, allocations: 214.8 kB / 437.9 MB, free: 8.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002065/0.3418, allocations: 357.9 kB / 438.3 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004943/0.3423, allocations: 260.2 kB / 438.5 MB, free: 8.133 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001072/0.3434, allocations: 0.9288 MB / 439.5 MB, free: 6.898 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001504/0.3449, allocations: 1.121 MB / 440.6 MB, free: 5.504 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/0.3449, allocations: 4 kB / 440.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00204/0.347, allocations: 1.205 MB / 441.8 MB, free: 4.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.266e-05/0.347, allocations: 37.7 kB / 441.8 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.953e-05/0.347, allocations: 27.94 kB / 441.9 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002808/0.3473, allocations: 65.69 kB / 441.9 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008039/0.3481, allocations: 271.5 kB / 442.2 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002268/0.3504, allocations: 2.558 MB / 444.7 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/0.3515, allocations: 76.17 kB / 444.8 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.913e-05/0.3515, allocations: 60 kB / 444.9 MB, free: 0.9414 MB / 350.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.0006416/0.3522, allocations: 349.3 kB / 445.2 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.3523, allocations: 143 kB / 445.4 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001059/0.3534, allocations: 0.5513 MB / 445.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.3534, allocations: 7.938 kB / 445.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3534, allocations: 4 kB / 445.9 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.3534, allocations: 3.984 kB / 445.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002827/0.3562, allocations: 1.713 MB / 447.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-06/0.3563, allocations: 4 kB / 447.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004105/0.3567, allocations: 107.8 kB / 447.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001421/0.3568, allocations: 41.7 kB / 447.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.636e-05/0.3568, allocations: 16.47 kB / 447.8 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002069/0.3589, allocations: 2.535 MB / 450.3 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.3589, allocations: 7.938 kB / 450.3 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001491/0.3604, allocations: 0.9307 MB / 451.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004663/0.3609, allocations: 183.1 kB / 451.5 MB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001383/0.361, allocations: 19.98 kB / 451.5 MB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005168/0.3615, allocations: 31.98 kB / 451.5 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.3616, allocations: 63.56 kB / 451.6 MB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.104e-05/0.3617, allocations: 20 kB / 451.6 MB, free: 9.781 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001394/0.3631, allocations: 0.8461 MB / 452.4 MB, free: 8.934 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3631, allocations: 0 / 452.4 MB, free: 8.934 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001251/0.3643, allocations: 304 kB / 452.7 MB, free: 8.637 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.002005/0.3663, allocations: 1.507 MB / 454.2 MB, free: 7.055 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001697/0.368, allocations: 0.9207 MB / 455.2 MB, free: 6.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.368, allocations: 2 kB / 455.2 MB, free: 6.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007062/0.3687, allocations: 462 kB / 455.6 MB, free: 5.613 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001427/0.3702, allocations: 332.9 kB / 455.9 MB, free: 5.289 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0166/0.3868, allocations: 11.05 MB / 467 MB, free: 9.395 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006842/0.3874, allocations: 0.5927 MB / 467.6 MB, free: 8.766 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006342/0.3881, allocations: 171.3 kB / 467.7 MB, free: 8.594 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007057/0.3888, allocations: 0.5696 MB / 468.3 MB, free: 8.023 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3888, allocations: 3.938 kB / 468.3 MB, free: 8.02 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07726/0.466, allocations: 30.09 MB / 498.4 MB, free: 9.816 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.55/13.02, allocations: 7.906 kB / 498.4 MB, free: 9.809 MB / 414.1 MB " [Timeout remaining time 647] (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: 16.02584458515048]