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.001652/0.001652, allocations: 106.4 kB / 17.06 MB, free: 6.027 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.001934/0.001934, allocations: 195 kB / 18 MB, free: 5.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.249/2.249, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001067/0.001067, allocations: 47.94 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2989, allocations: 49.43 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.009768/0.3087, allocations: 8.078 MB / 408.3 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00481/0.3136, allocations: 2.637 MB / 411 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001051/0.3147, allocations: 23.94 kB / 411 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001747/0.3165, allocations: 0.5558 MB / 411.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001648/0.3182, allocations: 472.3 kB / 412 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007599/0.3189, allocations: 239.7 kB / 412.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002198/0.3211, allocations: 1.475 MB / 413.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008657/0.322, allocations: 0.5807 MB / 414.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007797/0.3228, allocations: 0.5603 MB / 414.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006687/0.3235, allocations: 0.5989 MB / 415.4 MB, free: 9.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001509/0.3236, allocations: 136 kB / 415.6 MB, free: 9.371 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003137/0.324, allocations: 176 kB / 415.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001961/0.3242, allocations: 279 kB / 416 MB, free: 8.926 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005275/0.3247, allocations: 0.6648 MB / 416.7 MB, free: 8.258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001538/0.3263, allocations: 1.721 MB / 418.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.3263, allocations: 0 / 418.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3263, allocations: 0 / 418.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.516e-05/0.3263, allocations: 4 kB / 418.4 MB, free: 6.527 MB / 334.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.002252/0.3286, allocations: 1.447 MB / 419.9 MB, free: 5.031 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.3286, allocations: 15.95 kB / 419.9 MB, free: 5.016 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001534/0.3288, allocations: 148.4 kB / 420 MB, free: 4.863 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006045/0.3294, allocations: 195.3 kB / 420.2 MB, free: 4.672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001132/0.3305, allocations: 0.7338 MB / 420.9 MB, free: 3.895 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.899e-05/0.3306, allocations: 77.94 kB / 421 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.3307, allocations: 99.91 kB / 421.1 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001457/0.3322, allocations: 0.9308 MB / 422 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.45e-05/0.3322, allocations: 11.91 kB / 422.1 MB, free: 2.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.751e-05/0.3323, allocations: 44 kB / 422.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.972e-05/0.3323, allocations: 24 kB / 422.1 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001141/0.3335, allocations: 0.6325 MB / 422.8 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004619/0.3381, allocations: 3.879 MB / 426.6 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006551/0.3388, allocations: 446.3 kB / 427.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005668/0.3394, allocations: 269.3 kB / 427.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.3394, allocations: 4.328 kB / 427.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.647e-05/0.3394, allocations: 42.88 kB / 427.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.184e-06/0.3395, allocations: 0 / 427.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002496/0.342, allocations: 1.398 MB / 428.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.831e-05/0.342, allocations: 85.11 kB / 428.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009925/0.343, allocations: 0.8291 MB / 429.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.872e-05/0.3431, allocations: 33.7 kB / 429.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003611/0.3434, allocations: 0.5565 MB / 430.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001111/0.3436, allocations: 161.7 kB / 430.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.3437, allocations: 122.6 kB / 430.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.3438, allocations: 337.9 kB / 430.9 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003049/0.3442, allocations: 169.9 kB / 431.1 MB, free: 9.359 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004998/0.3447, allocations: 464 kB / 431.5 MB, free: 8.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008368/0.3455, allocations: 0.6585 MB / 432.2 MB, free: 7.977 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3455, allocations: 0 / 432.2 MB, free: 7.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001185/0.3467, allocations: 0.7706 MB / 432.9 MB, free: 7.195 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.3467, allocations: 8 kB / 432.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.3468, allocations: 15.98 kB / 433 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002626/0.347, allocations: 85.61 kB / 433 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004525/0.3475, allocations: 151.9 kB / 433.2 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002351/0.3499, allocations: 3.142 MB / 436.3 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000491/0.3504, allocations: 31.98 kB / 436.4 MB, free: 3.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.562e-05/0.3504, allocations: 32 kB / 436.4 MB, free: 3.449 MB / 350.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.0003445/0.3508, allocations: 274 kB / 436.7 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.3509, allocations: 86.97 kB / 436.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008764/0.3518, allocations: 495 kB / 437.2 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.3518, allocations: 8 kB / 437.2 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.3518, allocations: 0 / 437.2 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.3518, allocations: 4.031 kB / 437.2 MB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001953/0.3538, allocations: 1.436 MB / 438.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.3538, allocations: 0 / 438.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002896/0.3541, allocations: 75.89 kB / 438.8 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001924/0.3543, allocations: 69.84 kB / 438.8 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.657e-05/0.3543, allocations: 15.98 kB / 438.8 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002157/0.3565, allocations: 3.123 MB / 442 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3565, allocations: 0 / 442 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.3577, allocations: 0.774 MB / 442.7 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002556/0.3579, allocations: 200 kB / 442.9 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.395e-05/0.358, allocations: 16 kB / 442.9 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003868/0.3584, allocations: 31.91 kB / 443 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.724e-05/0.3585, allocations: 31.97 kB / 443 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.296e-05/0.3586, allocations: 8 kB / 443 MB, free: 12.37 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000726/0.3593, allocations: 0.5654 MB / 443.6 MB, free: 11.81 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3593, allocations: 0 / 443.6 MB, free: 11.81 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008077/0.3601, allocations: 203.9 kB / 443.8 MB, free: 11.61 MB / 366.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.002004/0.3621, allocations: 1.338 MB / 445.1 MB, free: 10.22 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001334/0.3635, allocations: 0.6905 MB / 445.8 MB, free: 9.504 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3635, allocations: 0 / 445.8 MB, free: 9.504 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006877/0.3642, allocations: 445.7 kB / 446.2 MB, free: 9.043 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001106/0.3653, allocations: 226.7 kB / 446.5 MB, free: 8.824 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0114/0.3767, allocations: 7.271 MB / 453.7 MB, free: 1.105 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007471/0.3775, allocations: 1.012 MB / 454.7 MB, free: 68 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004709/0.378, allocations: 103.3 kB / 454.8 MB, free: 15.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004358/0.3784, allocations: 367.3 kB / 455.2 MB, free: 15.6 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3784, allocations: 0 / 455.2 MB, free: 15.6 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07683/0.4553, allocations: 19.36 MB / 474.6 MB, free: 12.54 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.16/21.61, allocations: 7.875 kB / 474.6 MB, free: 12.53 MB / 398.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