Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001606/0.001606, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001911/0.001911, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 59.31 kB / 307.1 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08069/0.08188, allocations: 50.54 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.0091/0.09101, allocations: 7.993 MB / 365.6 MB, free: 5.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004143/0.09519, allocations: 2.63 MB / 368.2 MB, free: 3.293 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007402/0.09595, allocations: 23.94 kB / 368.2 MB, free: 3.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00149/0.09748, allocations: 0.5559 MB / 368.8 MB, free: 2.711 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001257/0.09875, allocations: 452.4 kB / 369.2 MB, free: 2.266 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005469/0.09931, allocations: 239.7 kB / 369.5 MB, free: 2.031 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001515/0.1008, allocations: 1.428 MB / 370.9 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007836/0.1016, allocations: 0.5769 MB / 371.5 MB, free: 0 / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1383/0.24, allocations: 0.5329 MB / 372 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005541/0.2405, allocations: 0.5822 MB / 372.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001769/0.2407, allocations: 137.1 kB / 372.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003404/0.2411, allocations: 173.4 kB / 372.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001864/0.2413, allocations: 276.3 kB / 373.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004987/0.2418, allocations: 0.6492 MB / 373.8 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00159/0.2434, allocations: 1.673 MB / 375.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2434, allocations: 7.219 kB / 375.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2434, allocations: 0 / 375.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.29e-05/0.2434, allocations: 1.969 kB / 375.5 MB, free: 10.45 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002089/0.2455, allocations: 1.424 MB / 376.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.2456, allocations: 12.41 kB / 376.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001554/0.2457, allocations: 147.9 kB / 377.1 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005237/0.2463, allocations: 173.9 kB / 377.2 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009222/0.2472, allocations: 0.7133 MB / 378 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.266e-05/0.2472, allocations: 72.75 kB / 378 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001219/0.2474, allocations: 98.19 kB / 378.1 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001393/0.2488, allocations: 0.9213 MB / 379 MB, free: 9.145 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.839e-05/0.2488, allocations: 5.938 kB / 379.1 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.098e-05/0.2489, allocations: 42.25 kB / 379.1 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.311e-05/0.2489, allocations: 24.59 kB / 379.1 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001157/0.2501, allocations: 0.6255 MB / 379.7 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004133/0.2542, allocations: 3.914 MB / 383.7 MB, free: 6.438 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005109/0.2548, allocations: 361.9 kB / 384 MB, free: 6.219 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002714/0.255, allocations: 145 kB / 384.2 MB, free: 6.164 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.882e-05/0.2551, allocations: 3.375 kB / 384.2 MB, free: 6.164 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.744e-05/0.2551, allocations: 36.45 kB / 384.2 MB, free: 6.125 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 2.054e-06/0.2551, allocations: 0 / 384.2 MB, free: 6.125 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002157/0.2573, allocations: 1.196 MB / 385.4 MB, free: 5.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.408e-05/0.2573, allocations: 84.8 kB / 385.5 MB, free: 5.242 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001057/0.2584, allocations: 0.8193 MB / 386.3 MB, free: 4.887 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.205e-05/0.2584, allocations: 32.11 kB / 386.3 MB, free: 4.852 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002685/0.2587, allocations: 0.5704 MB / 386.9 MB, free: 4.398 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.868e-05/0.2588, allocations: 134.7 kB / 387 MB, free: 4.297 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001459/0.2589, allocations: 123.7 kB / 387.1 MB, free: 4.227 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.351e-05/0.259, allocations: 331.5 kB / 387.5 MB, free: 3.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002875/0.2593, allocations: 155.1 kB / 387.6 MB, free: 3.855 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004031/0.2597, allocations: 455.6 kB / 388.1 MB, free: 3.398 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007075/0.2604, allocations: 0.6367 MB / 388.7 MB, free: 2.875 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.199e-06/0.2604, allocations: 6.438 kB / 388.7 MB, free: 2.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001056/0.2615, allocations: 0.6891 MB / 389.4 MB, free: 2.625 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.2615, allocations: 9.5 kB / 389.4 MB, free: 2.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.2615, allocations: 10.69 kB / 389.4 MB, free: 2.625 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000138/0.2617, allocations: 36.66 kB / 389.5 MB, free: 2.613 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004624/0.2621, allocations: 157.2 kB / 389.6 MB, free: 2.605 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007786/0.2629, allocations: 1.397 MB / 391 MB, free: 1.203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005231/0.2635, allocations: 38.22 kB / 391 MB, free: 1.188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.618e-05/0.2635, allocations: 31.22 kB / 391.1 MB, free: 1.184 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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): 83 * 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.0003556/0.2639, allocations: 267.2 kB / 391.3 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.264, allocations: 79.88 kB / 391.4 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006546/0.2647, allocations: 372.3 kB / 391.8 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.2647, allocations: 2.906 kB / 391.8 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.2647, allocations: 4.406 kB / 391.8 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.2647, allocations: 1.781 kB / 391.8 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001587/0.2663, allocations: 1.268 MB / 393 MB, free: 48 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.2663, allocations: 7.625 kB / 393.1 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003118/0.2666, allocations: 71.64 kB / 393.1 MB, free: 40 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.294e-05/0.2667, allocations: 19.08 kB / 393.1 MB, free: 32 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.221e-05/0.2667, allocations: 16.73 kB / 393.2 MB, free: 20 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009841/0.2677, allocations: 1.379 MB / 394.5 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.2677, allocations: 2.281 kB / 394.5 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.2688, allocations: 0.6301 MB / 395.2 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002433/0.269, allocations: 188.5 kB / 395.4 MB, free: 14.08 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.677e-05/0.2691, allocations: 7.875 kB / 395.4 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003932/0.2695, allocations: 30.7 kB / 395.4 MB, free: 14.06 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.243e-05/0.2696, allocations: 31.86 kB / 395.4 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.794e-05/0.2697, allocations: 8.906 kB / 395.4 MB, free: 14.05 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000711/0.2704, allocations: 0.561 MB / 396 MB, free: 13.81 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2704, allocations: 0 / 396 MB, free: 13.81 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007198/0.2711, allocations: 192.8 kB / 396.2 MB, free: 13.79 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,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 (34): * Single equations (assignments): 33 * 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.001311/0.2724, allocations: 1.191 MB / 397.4 MB, free: 12.88 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009527/0.2734, allocations: 0.5281 MB / 397.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2734, allocations: 0 / 397.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003936/0.2738, allocations: 268.4 kB / 398.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/0.2748, allocations: 216.5 kB / 398.4 MB, free: 12.34 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009055/0.2839, allocations: 7.595 MB / 406 MB, free: 6.988 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005238/0.2844, allocations: 0.9978 MB / 407 MB, free: 6.156 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003875/0.2848, allocations: 109 kB / 407.1 MB, free: 6.094 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004096/0.2852, allocations: 370.6 kB / 407.4 MB, free: 5.777 MB / 318.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2853, allocations: 3.938 kB / 407.4 MB, free: 5.773 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04203/0.3273, allocations: 17.53 MB / 425 MB, free: 4.664 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.192/9.519, allocations: 8 kB / 425 MB, free: 4.656 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_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_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches