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.001275/0.001276, allocations: 104.1 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.001402/0.001402, allocations: 214.4 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.315/1.315, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 55.5 kB / 307.1 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08122/0.08251, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.008358/0.09091, allocations: 7.985 MB / 365.6 MB, free: 5.969 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003882/0.09482, allocations: 2.641 MB / 368.2 MB, free: 3.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005817/0.09542, allocations: 23.94 kB / 368.2 MB, free: 3.297 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001369/0.09683, allocations: 0.552 MB / 368.8 MB, free: 2.742 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009054/0.09775, allocations: 452.4 kB / 369.2 MB, free: 2.297 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004052/0.09816, allocations: 239.7 kB / 369.5 MB, free: 2.062 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001131/0.0993, allocations: 1.417 MB / 370.9 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006796/0.09999, allocations: 0.5885 MB / 371.5 MB, free: 32 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1491/0.2491, allocations: 0.5377 MB / 372 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00061/0.2497, allocations: 0.5807 MB / 372.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002016/0.2499, allocations: 135.6 kB / 372.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003826/0.2503, allocations: 171.4 kB / 372.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002021/0.2505, allocations: 277.8 kB / 373.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005593/0.2511, allocations: 0.6519 MB / 373.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001742/0.2528, allocations: 1.673 MB / 375.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.2528, allocations: 3.938 kB / 375.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.2529, allocations: 5.875 kB / 375.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.14e-05/0.2529, allocations: 0 / 375.5 MB, free: 10.46 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.002147/0.255, allocations: 1.419 MB / 376.9 MB, free: 9.699 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.2551, allocations: 12.16 kB / 376.9 MB, free: 9.699 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001629/0.2552, allocations: 151 kB / 377.1 MB, free: 9.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000537/0.2558, allocations: 172.3 kB / 377.2 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009798/0.2568, allocations: 0.716 MB / 378 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.61e-05/0.2568, allocations: 76.78 kB / 378 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001198/0.257, allocations: 93.45 kB / 378.1 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/0.2584, allocations: 0.9243 MB / 379.1 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.041e-05/0.2585, allocations: 6.047 kB / 379.1 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.323e-05/0.2585, allocations: 40.56 kB / 379.1 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.053e-05/0.2586, allocations: 24.19 kB / 379.1 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001142/0.2597, allocations: 0.6226 MB / 379.7 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004461/0.2642, allocations: 3.913 MB / 383.7 MB, free: 6.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005855/0.2648, allocations: 360.8 kB / 384 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003047/0.2651, allocations: 144.3 kB / 384.1 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.947e-05/0.2651, allocations: 7.406 kB / 384.2 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.934e-05/0.2652, allocations: 34.03 kB / 384.2 MB, free: 6.168 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.984e-06/0.2652, allocations: 0 / 384.2 MB, free: 6.168 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002134/0.2673, allocations: 1.199 MB / 385.4 MB, free: 5.383 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.66e-05/0.2674, allocations: 80.52 kB / 385.5 MB, free: 5.289 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/0.2684, allocations: 0.8198 MB / 386.3 MB, free: 4.934 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.2684, allocations: 31.73 kB / 386.3 MB, free: 4.898 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003348/0.2688, allocations: 0.5678 MB / 386.9 MB, free: 4.445 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.48e-05/0.2689, allocations: 135.9 kB / 387 MB, free: 4.344 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001629/0.269, allocations: 129.2 kB / 387.1 MB, free: 4.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.9e-05/0.2691, allocations: 331.8 kB / 387.5 MB, free: 3.953 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003081/0.2694, allocations: 147.2 kB / 387.6 MB, free: 3.902 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003876/0.2698, allocations: 458 kB / 388.1 MB, free: 3.445 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006784/0.2705, allocations: 0.6356 MB / 388.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.2705, allocations: 1.812 kB / 388.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001057/0.2716, allocations: 0.6946 MB / 389.4 MB, free: 2.676 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.2716, allocations: 13.22 kB / 389.4 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.444e-05/0.2716, allocations: 10.34 kB / 389.4 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000145/0.2718, allocations: 30.67 kB / 389.4 MB, free: 2.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004698/0.2723, allocations: 158.5 kB / 389.6 MB, free: 2.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006958/0.273, allocations: 1.392 MB / 391 MB, free: 1.254 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005054/0.2735, allocations: 44.61 kB / 391 MB, free: 1.234 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.932e-05/0.2735, allocations: 31.78 kB / 391.1 MB, free: 1.23 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.0002862/0.2738, allocations: 261.8 kB / 391.3 MB, free: 1.031 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.2739, allocations: 79.25 kB / 391.4 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006682/0.2746, allocations: 381.3 kB / 391.8 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.2746, allocations: 3.25 kB / 391.8 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2746, allocations: 4.641 kB / 391.8 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.2747, allocations: 0 / 391.8 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001584/0.2762, allocations: 1.267 MB / 393 MB, free: 100 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.2763, allocations: 5.844 kB / 393.1 MB, free: 96 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003033/0.2766, allocations: 73.36 kB / 393.1 MB, free: 92 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.467e-05/0.2767, allocations: 24.02 kB / 393.1 MB, free: 80 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.114e-05/0.2767, allocations: 15.06 kB / 393.2 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008549/0.2776, allocations: 1.374 MB / 394.5 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.2776, allocations: 2.406 kB / 394.5 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009655/0.2785, allocations: 0.6364 MB / 395.2 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002296/0.2788, allocations: 187.1 kB / 395.4 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.911e-05/0.2789, allocations: 9.453 kB / 395.4 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003753/0.2793, allocations: 26.3 kB / 395.4 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.479e-05/0.2794, allocations: 29.11 kB / 395.4 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.772e-05/0.2794, allocations: 14.25 kB / 395.4 MB, free: 14.1 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007008/0.2801, allocations: 0.5576 MB / 396 MB, free: 13.86 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2801, allocations: 4.062 kB / 396 MB, free: 13.86 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000739/0.2808, allocations: 187.8 kB / 396.2 MB, free: 13.84 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.001253/0.2821, allocations: 1.202 MB / 397.4 MB, free: 12.92 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009861/0.2831, allocations: 0.5156 MB / 397.9 MB, free: 12.69 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.2831, allocations: 1.344 kB / 397.9 MB, free: 12.69 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004134/0.2835, allocations: 270.1 kB / 398.2 MB, free: 12.52 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001084/0.2846, allocations: 216.2 kB / 398.4 MB, free: 12.41 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009107/0.2937, allocations: 7.599 MB / 406 MB, free: 7.051 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004961/0.2943, allocations: 0.9914 MB / 407 MB, free: 6.223 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004102/0.2947, allocations: 101 kB / 407.1 MB, free: 6.168 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003951/0.2951, allocations: 369.7 kB / 407.4 MB, free: 5.852 MB / 318.1 MB Notification: Performance of SimCode: time 1.052e-06/0.2951, allocations: 7.312 kB / 407.4 MB, free: 5.848 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07458/0.3697, allocations: 17.54 MB / 425 MB, free: 4.727 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.49/13.86, allocations: 11.92 kB / 425 MB, free: 4.715 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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