Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.001286/0.001286, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001487/0.001487, allocations: 207.7 kB / 23.73 MB, free: 4.523 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.483/1.483, allocations: 230.6 MB / 257.5 MB, free: 7.797 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_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001497/0.001497, allocations: 48.02 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2632, allocations: 53.36 MB / 431.1 MB, free: 6.785 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.008908/0.2721, allocations: 6.37 MB / 437.5 MB, free: 396 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004532/0.2766, allocations: 2.22 MB / 439.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009514/0.2776, allocations: 23.94 kB / 439.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001576/0.2791, allocations: 465.1 kB / 440.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001003/0.2801, allocations: 413 kB / 440.6 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004118/0.2805, allocations: 211.7 kB / 440.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001314/0.2819, allocations: 1.206 MB / 442 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006049/0.2825, allocations: 336.5 kB / 442.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007857/0.2833, allocations: 486.1 kB / 442.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005719/0.2838, allocations: 497.8 kB / 443.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001397/0.284, allocations: 116 kB / 443.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002914/0.2843, allocations: 152 kB / 443.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001862/0.2844, allocations: 231.1 kB / 443.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004327/0.2849, allocations: 450 kB / 444.2 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001557/0.2864, allocations: 1.455 MB / 445.6 MB, free: 8.152 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.2864, allocations: 0 / 445.6 MB, free: 8.152 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.2864, allocations: 0 / 445.6 MB, free: 8.152 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.486e-05/0.2865, allocations: 0 / 445.6 MB, free: 8.152 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002111/0.2886, allocations: 1.194 MB / 446.8 MB, free: 6.926 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.2886, allocations: 12.03 kB / 446.8 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001543/0.2888, allocations: 123.1 kB / 447 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004552/0.2892, allocations: 148.2 kB / 447.1 MB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.2903, allocations: 0.5844 MB / 447.7 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.315e-05/0.2904, allocations: 62.31 kB / 447.8 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001193/0.2905, allocations: 88.08 kB / 447.8 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001342/0.2918, allocations: 0.8256 MB / 448.7 MB, free: 5.008 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.104e-05/0.2919, allocations: 4 kB / 448.7 MB, free: 5.004 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.271e-05/0.2919, allocations: 32 kB / 448.7 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.954e-05/0.292, allocations: 24 kB / 448.7 MB, free: 4.949 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001005/0.293, allocations: 0.5191 MB / 449.2 MB, free: 4.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004078/0.297, allocations: 3.04 MB / 452.3 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005233/0.2976, allocations: 222.5 kB / 452.5 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002425/0.2978, allocations: 108.8 kB / 452.6 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.078e-05/0.2978, allocations: 4 kB / 452.6 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.426e-05/0.2979, allocations: 34.56 kB / 452.6 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.714e-06/0.2979, allocations: 0 / 452.6 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002129/0.3, allocations: 0.9121 MB / 453.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.946e-05/0.3001, allocations: 81.34 kB / 453.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001023/0.3011, allocations: 0.7465 MB / 454.4 MB, free: 15 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.438e-05/0.3011, allocations: 33.7 kB / 454.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004083/0.3016, allocations: 0.5034 MB / 454.9 MB, free: 14.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.102e-05/0.3016, allocations: 111.1 kB / 455 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001806/0.3018, allocations: 118.2 kB / 455.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002187/0.302, allocations: 374.8 kB / 455.5 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002756/0.3023, allocations: 133.2 kB / 455.6 MB, free: 13.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006079/0.3029, allocations: 443.9 kB / 456.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008621/0.3038, allocations: 0.5675 MB / 456.6 MB, free: 12.44 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.3038, allocations: 4 kB / 456.6 MB, free: 12.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001191/0.305, allocations: 0.6193 MB / 457.3 MB, free: 11.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.305, allocations: 8 kB / 457.3 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.825e-05/0.305, allocations: 15.94 kB / 457.3 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000177/0.3052, allocations: 32.78 kB / 457.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004445/0.3056, allocations: 139.8 kB / 457.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00127/0.3069, allocations: 1.287 MB / 458.7 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004667/0.3074, allocations: 35.94 kB / 458.8 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.782e-05/0.3074, allocations: 32 kB / 458.8 MB, free: 10.15 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003552/0.3078, allocations: 233.6 kB / 459 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.3079, allocations: 71.53 kB / 459.1 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006776/0.3086, allocations: 329.5 kB / 459.4 MB, free: 9.508 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3086, allocations: 0 / 459.4 MB, free: 9.508 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3086, allocations: 4 kB / 459.4 MB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.3086, allocations: 0 / 459.4 MB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001676/0.3103, allocations: 1 MB / 460.4 MB, free: 8.426 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.3103, allocations: 8.062 kB / 460.4 MB, free: 8.418 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002616/0.3105, allocations: 59.95 kB / 460.5 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.939e-05/0.3106, allocations: 24.8 kB / 460.5 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/0.3106, allocations: 8 kB / 460.5 MB, free: 8.324 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009867/0.3116, allocations: 1.263 MB / 461.8 MB, free: 6.941 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.3116, allocations: 4.031 kB / 461.8 MB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008898/0.3125, allocations: 0.56 MB / 462.4 MB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002257/0.3127, allocations: 99.53 kB / 462.5 MB, free: 6.242 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.368e-05/0.3128, allocations: 11.94 kB / 462.5 MB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003008/0.3131, allocations: 24.05 kB / 462.5 MB, free: 6.207 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.487e-05/0.3132, allocations: 27.89 kB / 462.5 MB, free: 6.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.662e-05/0.3132, allocations: 8 kB / 462.5 MB, free: 6.172 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006939/0.3139, allocations: 0.5029 MB / 463 MB, free: 5.672 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3139, allocations: 0 / 463 MB, free: 5.672 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006879/0.3146, allocations: 164 kB / 463.2 MB, free: 5.512 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.001297/0.3159, allocations: 1.118 MB / 464.3 MB, free: 4.344 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009128/0.3168, allocations: 448.5 kB / 464.7 MB, free: 3.895 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3168, allocations: 0 / 464.7 MB, free: 3.895 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003814/0.3172, allocations: 235.3 kB / 465 MB, free: 3.652 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009181/0.3181, allocations: 189.1 kB / 465.2 MB, free: 3.477 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009083/0.3272, allocations: 6.282 MB / 471.4 MB, free: 12.78 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003796/0.3276, allocations: 348.7 kB / 471.8 MB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003446/0.3279, allocations: 94 kB / 471.9 MB, free: 12.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003755/0.3283, allocations: 299.3 kB / 472.2 MB, free: 12.03 MB / 382.1 MB Notification: Performance of SimCode: time 1.292e-06/0.3283, allocations: 0 / 472.2 MB, free: 12.03 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05518/0.3834, allocations: 17.13 MB / 489.3 MB, free: 11.22 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/11.97, allocations: 10.64 kB / 489.3 MB, free: 11.22 MB / 398.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia.w in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.941788758005714]