Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 110.3 kB / 16.92 MB, free: 5.785 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000986/0.0009859, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001017/0.001017, allocations: 42.62 kB / 300.7 MB, free: 5.762 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08232/0.08336, allocations: 49.46 MB / 350.2 MB, free: 4.297 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.008704/0.0921, allocations: 8.06 MB / 358.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003562/0.09569, allocations: 2.641 MB / 360.9 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004022/0.09611, allocations: 23.94 kB / 360.9 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001161/0.09729, allocations: 0.5481 MB / 361.4 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007963/0.0981, allocations: 468.3 kB / 361.9 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003919/0.0985, allocations: 251.7 kB / 362.2 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001202/0.09971, allocations: 1.473 MB / 363.6 MB, free: 6.777 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007221/0.1004, allocations: 0.5961 MB / 364.2 MB, free: 6.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005444/0.101, allocations: 0.5447 MB / 364.8 MB, free: 5.613 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005694/0.1016, allocations: 0.5988 MB / 365.4 MB, free: 5.012 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001634/0.1018, allocations: 147.9 kB / 365.5 MB, free: 4.867 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003035/0.1021, allocations: 176 kB / 365.7 MB, free: 4.695 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001972/0.1023, allocations: 275 kB / 365.9 MB, free: 4.426 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005408/0.1028, allocations: 0.6571 MB / 366.6 MB, free: 3.766 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001422/0.1042, allocations: 1.713 MB / 368.3 MB, free: 2.047 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1043, allocations: 0 / 368.3 MB, free: 2.047 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1043, allocations: 0 / 368.3 MB, free: 2.047 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.417e-05/0.1043, allocations: 0 / 368.3 MB, free: 2.047 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002142/0.1064, allocations: 1.441 MB / 369.8 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.1065, allocations: 16.03 kB / 369.8 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001588/0.1066, allocations: 152.4 kB / 369.9 MB, free: 388 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006299/0.1073, allocations: 179.4 kB / 370.1 MB, free: 208 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1339/0.2411, allocations: 0.7274 MB / 370.8 MB, free: 24.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.441e-05/0.2412, allocations: 71.25 kB / 370.9 MB, free: 24.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.2414, allocations: 101.2 kB / 371 MB, free: 24.69 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001481/0.2429, allocations: 0.9399 MB / 371.9 MB, free: 24.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.077e-05/0.2429, allocations: 5.391 kB / 371.9 MB, free: 24.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.93e-05/0.243, allocations: 38.44 kB / 372 MB, free: 24.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.057e-05/0.243, allocations: 24.78 kB / 372 MB, free: 24.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001174/0.2442, allocations: 0.6423 MB / 372.6 MB, free: 24.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004394/0.2486, allocations: 3.913 MB / 376.6 MB, free: 21.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005834/0.2492, allocations: 437.7 kB / 377 MB, free: 21.65 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005186/0.2497, allocations: 267 kB / 377.2 MB, free: 21.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.766e-05/0.2498, allocations: 8.422 kB / 377.3 MB, free: 21.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.564e-05/0.2498, allocations: 37.58 kB / 377.3 MB, free: 21.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.464e-06/0.2498, allocations: 2.062 kB / 377.3 MB, free: 21.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002324/0.2521, allocations: 1.388 MB / 378.7 MB, free: 20.65 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.649e-05/0.2522, allocations: 87.47 kB / 378.8 MB, free: 20.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009462/0.2531, allocations: 0.8268 MB / 379.6 MB, free: 20.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.583e-05/0.2532, allocations: 36.56 kB / 379.6 MB, free: 20.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002692/0.2534, allocations: 0.5509 MB / 380.2 MB, free: 19.71 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.073e-05/0.2535, allocations: 161.5 kB / 380.3 MB, free: 19.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/0.2537, allocations: 130.1 kB / 380.5 MB, free: 19.51 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.446e-05/0.2537, allocations: 333.5 kB / 380.8 MB, free: 19.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003094/0.2541, allocations: 164 kB / 381 MB, free: 19.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003815/0.2544, allocations: 463.1 kB / 381.4 MB, free: 18.69 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007023/0.2552, allocations: 0.6537 MB / 382.1 MB, free: 18.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.2552, allocations: 2.562 kB / 382.1 MB, free: 18.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001159/0.2563, allocations: 0.7625 MB / 382.8 MB, free: 17.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.2564, allocations: 21.27 kB / 382.8 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.2564, allocations: 12.66 kB / 382.9 MB, free: 17.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002391/0.2566, allocations: 82.5 kB / 382.9 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004861/0.2571, allocations: 154.4 kB / 383.1 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001646/0.2588, allocations: 3.147 MB / 386.2 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005144/0.2593, allocations: 36.39 kB / 386.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.085e-05/0.2594, allocations: 35.81 kB / 386.3 MB, free: 14.62 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002943/0.2597, allocations: 261.9 kB / 386.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.2598, allocations: 85.19 kB / 386.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008409/0.2606, allocations: 488.2 kB / 387.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.2607, allocations: 4.969 kB / 387.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2607, allocations: 1.719 kB / 387.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.2607, allocations: 3.281 kB / 387.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001901/0.2626, allocations: 1.435 MB / 388.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.2626, allocations: 2.406 kB / 388.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000295/0.2629, allocations: 72.22 kB / 388.6 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000181/0.2631, allocations: 80.12 kB / 388.7 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.392e-05/0.2631, allocations: 8.609 kB / 388.7 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001514/0.2646, allocations: 3.12 MB / 391.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.2647, allocations: 5.844 kB / 391.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.2657, allocations: 0.7632 MB / 392.6 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002107/0.2659, allocations: 203.7 kB / 392.8 MB, free: 9.566 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.816e-05/0.266, allocations: 8.938 kB / 392.8 MB, free: 9.562 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000412/0.2665, allocations: 28.91 kB / 392.8 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.84e-05/0.2665, allocations: 37.94 kB / 392.9 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.2666, allocations: 13.78 kB / 392.9 MB, free: 9.539 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006541/0.2672, allocations: 0.5616 MB / 393.5 MB, free: 9.293 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2672, allocations: 0 / 393.5 MB, free: 9.293 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008358/0.2681, allocations: 206.3 kB / 393.7 MB, free: 9.273 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * 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,5,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.001254/0.2693, allocations: 1.35 MB / 395 MB, free: 8.262 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001044/0.2704, allocations: 0.6983 MB / 395.7 MB, free: 7.871 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.2704, allocations: 3.219 kB / 395.7 MB, free: 7.871 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005126/0.2709, allocations: 443 kB / 396.1 MB, free: 7.539 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.2719, allocations: 230.2 kB / 396.4 MB, free: 7.422 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007764/0.2797, allocations: 7.818 MB / 404.2 MB, free: 1.777 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003322/0.2801, allocations: 1.009 MB / 405.2 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003567/0.2804, allocations: 111.2 kB / 405.3 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003118/0.2807, allocations: 363.3 kB / 405.7 MB, free: 276 kB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.2808, allocations: 0 / 405.7 MB, free: 276 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04053/0.3213, allocations: 18.7 MB / 424.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.975/9.296, allocations: 8 kB / 424.4 MB, free: 13.83 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches