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.001442/0.001442, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.00171/0.00171, allocations: 190 kB / 17.54 MB, free: 6.066 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.258/1.258, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001084/0.001084, allocations: 44.75 kB / 300.3 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07473/0.07583, allocations: 49.44 MB / 349.7 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009173/0.08505, allocations: 8.043 MB / 357.7 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00384/0.08891, allocations: 2.614 MB / 360.3 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007934/0.08973, allocations: 23.94 kB / 360.4 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001306/0.09107, allocations: 0.4903 MB / 360.9 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008683/0.09195, allocations: 401.2 kB / 361.3 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003751/0.09233, allocations: 227.8 kB / 361.5 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001104/0.09344, allocations: 1.475 MB / 363 MB, free: 7.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000633/0.09408, allocations: 0.5883 MB / 363.5 MB, free: 6.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004639/0.09456, allocations: 0.5447 MB / 364.1 MB, free: 6.184 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004907/0.09505, allocations: 0.5989 MB / 364.7 MB, free: 5.582 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001325/0.09519, allocations: 136 kB / 364.8 MB, free: 5.449 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002486/0.09545, allocations: 180 kB / 365 MB, free: 5.273 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001638/0.09562, allocations: 279 kB / 365.3 MB, free: 5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004565/0.09608, allocations: 0.6688 MB / 365.9 MB, free: 4.328 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001219/0.09731, allocations: 1.701 MB / 367.6 MB, free: 2.621 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.09732, allocations: 4 kB / 367.6 MB, free: 2.617 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.09733, allocations: 0 / 367.6 MB, free: 2.617 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.09735, allocations: 0 / 367.6 MB, free: 2.617 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.001906/0.09926, allocations: 1.441 MB / 369.1 MB, free: 1.121 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.0993, allocations: 11.97 kB / 369.1 MB, free: 1.109 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001454/0.09945, allocations: 152.4 kB / 369.2 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000584/0.1, allocations: 187.4 kB / 369.4 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1332/0.2333, allocations: 0.7275 MB / 370.2 MB, free: 25.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001238/0.2334, allocations: 71.72 kB / 370.2 MB, free: 25.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002695/0.2337, allocations: 98.09 kB / 370.3 MB, free: 25.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001751/0.2355, allocations: 0.9339 MB / 371.3 MB, free: 25.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.365e-05/0.2355, allocations: 5.469 kB / 371.3 MB, free: 25.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.223e-05/0.2356, allocations: 42.38 kB / 371.3 MB, free: 25.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.259e-05/0.2356, allocations: 24 kB / 371.3 MB, free: 25.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001138/0.2368, allocations: 0.6338 MB / 372 MB, free: 24.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004137/0.2409, allocations: 3.92 MB / 375.9 MB, free: 22.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005597/0.2415, allocations: 439.6 kB / 376.3 MB, free: 22.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004851/0.242, allocations: 267.5 kB / 376.6 MB, free: 22.03 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.515e-05/0.242, allocations: 5.609 kB / 376.6 MB, free: 22.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.525e-05/0.2421, allocations: 37.83 kB / 376.6 MB, free: 21.99 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.864e-06/0.2421, allocations: 0 / 376.6 MB, free: 21.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002113/0.2442, allocations: 1.4 MB / 378 MB, free: 21.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.751e-05/0.2442, allocations: 82 kB / 378.1 MB, free: 21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009094/0.2451, allocations: 0.8272 MB / 378.9 MB, free: 20.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.435e-05/0.2452, allocations: 31.89 kB / 378.9 MB, free: 20.6 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002534/0.2454, allocations: 0.5628 MB / 379.5 MB, free: 20.15 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.699e-05/0.2455, allocations: 157.8 kB / 379.7 MB, free: 20.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001468/0.2457, allocations: 130.1 kB / 379.8 MB, free: 19.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.985e-05/0.2457, allocations: 333.5 kB / 380.1 MB, free: 19.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000292/0.246, allocations: 164.2 kB / 380.3 MB, free: 19.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003634/0.2464, allocations: 458.6 kB / 380.7 MB, free: 19.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006595/0.2471, allocations: 0.6613 MB / 381.4 MB, free: 18.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.2471, allocations: 3.75 kB / 381.4 MB, free: 18.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001066/0.2482, allocations: 0.7666 MB / 382.2 MB, free: 18.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.2482, allocations: 9.281 kB / 382.2 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.2482, allocations: 10.02 kB / 382.2 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002314/0.2484, allocations: 85.41 kB / 382.3 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004573/0.2489, allocations: 154.2 kB / 382.4 MB, free: 18.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001552/0.2505, allocations: 3.149 MB / 385.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004707/0.2509, allocations: 32 kB / 385.6 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.194e-05/0.251, allocations: 36.02 kB / 385.6 MB, free: 15.08 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.0002712/0.2513, allocations: 265 kB / 385.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.2514, allocations: 89 kB / 386 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007813/0.2522, allocations: 489.1 kB / 386.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.2522, allocations: 5.766 kB / 386.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.2522, allocations: 1.188 kB / 386.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.2522, allocations: 2.25 kB / 386.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001804/0.254, allocations: 1.436 MB / 387.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.254, allocations: 5.688 kB / 387.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002786/0.2543, allocations: 68.73 kB / 388 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001758/0.2545, allocations: 74.11 kB / 388 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.353e-05/0.2545, allocations: 13.08 kB / 388.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001431/0.256, allocations: 3.12 MB / 391.2 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.256, allocations: 5.188 kB / 391.2 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009878/0.257, allocations: 0.7718 MB / 391.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001932/0.2572, allocations: 195.2 kB / 392.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.536e-05/0.2573, allocations: 15.83 kB / 392.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003895/0.2577, allocations: 28.25 kB / 392.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.488e-05/0.2578, allocations: 38.95 kB / 392.2 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.456e-05/0.2578, allocations: 13.56 kB / 392.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006833/0.2585, allocations: 0.5603 MB / 392.8 MB, free: 9.746 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2585, allocations: 0 / 392.8 MB, free: 9.746 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008587/0.2594, allocations: 205.6 kB / 393 MB, free: 9.727 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.001411/0.2608, allocations: 1.341 MB / 394.3 MB, free: 8.715 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001161/0.2619, allocations: 0.7107 MB / 395 MB, free: 8.309 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.262, allocations: 0 / 395 MB, free: 8.309 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004918/0.2625, allocations: 438.1 kB / 395.5 MB, free: 8.016 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009844/0.2635, allocations: 225.4 kB / 395.7 MB, free: 7.934 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009254/0.2727, allocations: 8.206 MB / 403.9 MB, free: 2.039 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000331/0.2731, allocations: 1.009 MB / 404.9 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004477/0.2735, allocations: 99.27 kB / 405 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003152/0.2739, allocations: 375.3 kB / 405.4 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2739, allocations: 0 / 405.4 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.229/1.503, allocations: 18.53 MB / 423.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002318/1.503, allocations: 233.3 kB / 424.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.087/4.59, allocations: 6.812 kB / 424.1 MB, free: 14.05 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