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.001299/0.001299, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001194/0.001194, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.266/1.266, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 47.09 kB / 300.7 MB, free: 5.746 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07399/0.07518, allocations: 49.44 MB / 350.2 MB, free: 4.293 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.008438/0.08364, allocations: 8.059 MB / 358.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004332/0.088, allocations: 2.637 MB / 360.9 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009298/0.08896, allocations: 27.88 kB / 360.9 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001536/0.09054, allocations: 0.5519 MB / 361.4 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001749/0.09232, allocations: 460.4 kB / 361.9 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006619/0.09299, allocations: 263.6 kB / 362.2 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001725/0.09473, allocations: 1.479 MB / 363.6 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008292/0.09557, allocations: 0.5767 MB / 364.2 MB, free: 6.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008154/0.09639, allocations: 0.5486 MB / 364.8 MB, free: 5.609 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00081/0.09721, allocations: 0.595 MB / 365.4 MB, free: 5.012 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002274/0.09745, allocations: 136 kB / 365.5 MB, free: 4.879 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004077/0.09787, allocations: 179.9 kB / 365.7 MB, free: 4.703 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002529/0.09813, allocations: 283 kB / 365.9 MB, free: 4.426 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008105/0.09895, allocations: 0.6687 MB / 366.6 MB, free: 3.754 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001601/0.1006, allocations: 1.705 MB / 368.3 MB, free: 2.043 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1006, allocations: 0 / 368.3 MB, free: 2.043 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1006, allocations: 0 / 368.3 MB, free: 2.043 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.263e-05/0.1006, allocations: 0 / 368.3 MB, free: 2.043 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.002562/0.1032, allocations: 1.448 MB / 369.8 MB, free: 0.543 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.1033, allocations: 8.031 kB / 369.8 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001916/0.1035, allocations: 156.4 kB / 369.9 MB, free: 384 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006541/0.1041, allocations: 191.3 kB / 370.1 MB, free: 192 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.132/0.2362, allocations: 0.7198 MB / 370.8 MB, free: 24.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.195e-05/0.2362, allocations: 71.81 kB / 370.9 MB, free: 24.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001403/0.2364, allocations: 98.55 kB / 371 MB, free: 24.67 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001471/0.2379, allocations: 0.9371 MB / 371.9 MB, free: 24.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.164e-05/0.2379, allocations: 10.17 kB / 371.9 MB, free: 24.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.768e-05/0.238, allocations: 37.97 kB / 372 MB, free: 24.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.234e-05/0.238, allocations: 23.19 kB / 372 MB, free: 24.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001168/0.2392, allocations: 0.6422 MB / 372.6 MB, free: 24.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004373/0.2436, allocations: 3.92 MB / 376.6 MB, free: 21.88 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006162/0.2442, allocations: 434.9 kB / 377 MB, free: 21.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005468/0.2448, allocations: 260.5 kB / 377.2 MB, free: 21.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.55e-05/0.2448, allocations: 13.59 kB / 377.3 MB, free: 21.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.346e-05/0.2448, allocations: 42.22 kB / 377.3 MB, free: 21.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.394e-06/0.2449, allocations: 1.25 kB / 377.3 MB, free: 21.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002456/0.2473, allocations: 1.39 MB / 378.7 MB, free: 20.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.849e-05/0.2474, allocations: 86.73 kB / 378.8 MB, free: 20.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009541/0.2483, allocations: 0.8199 MB / 379.6 MB, free: 20.17 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.315e-05/0.2484, allocations: 36.36 kB / 379.6 MB, free: 20.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002821/0.2486, allocations: 0.5535 MB / 380.2 MB, free: 19.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.73e-05/0.2487, allocations: 158.8 kB / 380.3 MB, free: 19.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001823/0.2489, allocations: 130.7 kB / 380.5 MB, free: 19.49 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.31e-05/0.249, allocations: 333.6 kB / 380.8 MB, free: 19.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003116/0.2493, allocations: 167.9 kB / 381 MB, free: 19.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000407/0.2497, allocations: 457.4 kB / 381.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007134/0.2505, allocations: 0.6641 MB / 382.1 MB, free: 18.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.2505, allocations: 3.062 kB / 382.1 MB, free: 18.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001123/0.2516, allocations: 0.7665 MB / 382.8 MB, free: 17.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.2516, allocations: 13.08 kB / 382.8 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/0.2517, allocations: 9.75 kB / 382.9 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002406/0.2519, allocations: 81.75 kB / 382.9 MB, free: 17.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004619/0.2524, allocations: 155.7 kB / 383.1 MB, free: 17.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001646/0.254, allocations: 3.149 MB / 386.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005393/0.2546, allocations: 35.7 kB / 386.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.166e-05/0.2546, allocations: 32.41 kB / 386.3 MB, free: 14.6 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.0002979/0.2549, allocations: 269.9 kB / 386.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.2551, allocations: 85.53 kB / 386.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008668/0.2559, allocations: 485.4 kB / 387.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.2559, allocations: 3.969 kB / 387.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.256, allocations: 1 kB / 387.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.351e-06/0.256, allocations: 3.094 kB / 387.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002081/0.2581, allocations: 1.435 MB / 388.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.2581, allocations: 11.25 kB / 388.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003073/0.2584, allocations: 67.45 kB / 388.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001971/0.2586, allocations: 71.86 kB / 388.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.759e-05/0.2586, allocations: 12.17 kB / 388.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001556/0.2602, allocations: 3.127 MB / 391.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.2602, allocations: 2.375 kB / 391.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.2613, allocations: 0.7598 MB / 392.6 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002266/0.2616, allocations: 211.2 kB / 392.8 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.2617, allocations: 12.64 kB / 392.8 MB, free: 9.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004224/0.2621, allocations: 28.22 kB / 392.9 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.471e-05/0.2622, allocations: 33.48 kB / 392.9 MB, free: 9.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.463e-05/0.2622, allocations: 15.59 kB / 392.9 MB, free: 9.516 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006794/0.2629, allocations: 0.5596 MB / 393.5 MB, free: 9.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2629, allocations: 0 / 393.5 MB, free: 9.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008548/0.2638, allocations: 206.2 kB / 393.7 MB, free: 9.25 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.001327/0.2651, allocations: 1.342 MB / 395 MB, free: 8.238 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001151/0.2663, allocations: 0.701 MB / 395.7 MB, free: 7.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.2663, allocations: 7.906 kB / 395.7 MB, free: 7.836 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005131/0.2668, allocations: 438.3 kB / 396.2 MB, free: 7.512 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009625/0.2678, allocations: 229.7 kB / 396.4 MB, free: 7.398 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008323/0.2761, allocations: 7.819 MB / 404.2 MB, free: 1.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003591/0.2765, allocations: 1.005 MB / 405.2 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004036/0.2769, allocations: 99.27 kB / 405.3 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003536/0.2773, allocations: 375.3 kB / 405.7 MB, free: 252 kB / 302.1 MB Notification: Performance of SimCode: time 7.31e-07/0.2773, allocations: 0 / 405.7 MB, free: 252 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05364/0.3309, allocations: 18.7 MB / 424.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/12.23, allocations: 10.69 kB / 424.4 MB, free: 13.81 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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