Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001018/0.001018, allocations: 115.3 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001072/0.001072, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.4 MB / 246.4 MB, free: 9.082 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.001241, allocations: 59.59 kB / 306.6 MB, free: 0.5977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07946/0.08072, allocations: 50.53 MB / 357.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01167/0.09242, allocations: 12.08 MB / 369.2 MB, free: 1.926 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1473/0.2397, allocations: 3.261 MB / 372.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001127/0.2409, allocations: 37.69 kB / 372.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001513/0.2424, allocations: 0.5754 MB / 373 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00135/0.2438, allocations: 0.6246 MB / 373.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006119/0.2444, allocations: 357.6 kB / 374 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002117/0.2465, allocations: 2.399 MB / 376.4 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001165/0.2477, allocations: 0.9995 MB / 377.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00116/0.2489, allocations: 0.9187 MB / 378.3 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009048/0.2498, allocations: 0.9848 MB / 379.3 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000303/0.2501, allocations: 229.1 kB / 379.5 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005041/0.2506, allocations: 266 kB / 379.8 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002752/0.2509, allocations: 457.6 kB / 380.2 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008346/0.2517, allocations: 1.076 MB / 381.3 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002844/0.2546, allocations: 2.796 MB / 384.1 MB, free: 6.871 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.2546, allocations: 1.844 kB / 384.1 MB, free: 6.871 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2546, allocations: 0 / 384.1 MB, free: 6.871 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.165e-05/0.2547, allocations: 0 / 384.1 MB, free: 6.871 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003612/0.2583, allocations: 2.16 MB / 386.3 MB, free: 5.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.2584, allocations: 9.719 kB / 386.3 MB, free: 5.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002199/0.2586, allocations: 223.5 kB / 386.5 MB, free: 5.355 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009581/0.2596, allocations: 281 kB / 386.8 MB, free: 5.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001505/0.2611, allocations: 1.106 MB / 387.9 MB, free: 4.531 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.124e-05/0.2612, allocations: 113.6 kB / 388 MB, free: 4.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000202/0.2614, allocations: 162.3 kB / 388.2 MB, free: 4.422 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002508/0.2639, allocations: 1.508 MB / 389.7 MB, free: 3.711 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.026e-05/0.2639, allocations: 7.406 kB / 389.7 MB, free: 3.707 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001173/0.2641, allocations: 62.73 kB / 389.7 MB, free: 3.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.245e-05/0.2641, allocations: 38.59 kB / 389.8 MB, free: 3.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001928/0.266, allocations: 1.057 MB / 390.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007486/0.2735, allocations: 6.29 MB / 397.1 MB, free: 13.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/0.2751, allocations: 0.6125 MB / 397.7 MB, free: 13.65 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008838/0.276, allocations: 461.3 kB / 398.2 MB, free: 13.44 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.937e-05/0.2761, allocations: 12.22 kB / 398.2 MB, free: 13.44 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.1e-05/0.2761, allocations: 46.62 kB / 398.2 MB, free: 13.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.675e-06/0.2761, allocations: 0 / 398.2 MB, free: 13.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.005023/0.2812, allocations: 2.362 MB / 400.6 MB, free: 11.87 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.507e-05/0.2812, allocations: 114.9 kB / 400.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001558/0.2828, allocations: 1.3 MB / 402 MB, free: 11.01 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.725e-05/0.2829, allocations: 39.48 kB / 402.1 MB, free: 10.97 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000554/0.2834, allocations: 0.8495 MB / 402.9 MB, free: 10.22 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/0.2836, allocations: 261.7 kB / 403.2 MB, free: 10 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00026/0.2839, allocations: 205.4 kB / 403.4 MB, free: 9.867 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.284, allocations: 352.8 kB / 403.7 MB, free: 9.527 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005682/0.2846, allocations: 282.6 kB / 404 MB, free: 9.395 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008437/0.2854, allocations: 0.7437 MB / 404.7 MB, free: 8.625 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001451/0.2869, allocations: 1.09 MB / 405.8 MB, free: 7.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.2869, allocations: 4.812 kB / 405.8 MB, free: 7.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002276/0.2892, allocations: 1.255 MB / 407.1 MB, free: 6.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.31e-05/0.2892, allocations: 20.02 kB / 407.1 MB, free: 6.461 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/0.2893, allocations: 16 kB / 407.1 MB, free: 6.445 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005029/0.2898, allocations: 138.5 kB / 407.2 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000842/0.2906, allocations: 255.5 kB / 407.5 MB, free: 6.051 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003853/0.2945, allocations: 4.638 MB / 412.1 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009286/0.2954, allocations: 59.89 kB / 412.2 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.657e-05/0.2955, allocations: 63.98 kB / 412.3 MB, free: 0.875 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0005385/0.2961, allocations: 357.3 kB / 412.6 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000196/0.2963, allocations: 138.3 kB / 412.7 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001775/0.2981, allocations: 0.8294 MB / 413.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.2981, allocations: 8 kB / 413.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2981, allocations: 7.938 kB / 413.6 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.2981, allocations: 3.984 kB / 413.6 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003884/0.302, allocations: 2.325 MB / 415.9 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.302, allocations: 8.031 kB / 415.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005835/0.3026, allocations: 131.8 kB / 416 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004353/0.303, allocations: 130.5 kB / 416.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.334e-05/0.3031, allocations: 19.94 kB / 416.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004106/0.3072, allocations: 4.792 MB / 421 MB, free: 7.582 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/0.3072, allocations: 11.92 kB / 421 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00233/0.3096, allocations: 1.297 MB / 422.3 MB, free: 6.199 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004529/0.3101, allocations: 287.2 kB / 422.6 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002036/0.3103, allocations: 20 kB / 422.6 MB, free: 5.879 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006674/0.3109, allocations: 35.97 kB / 422.6 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.3111, allocations: 68.36 kB / 422.7 MB, free: 5.777 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-05/0.3111, allocations: 20 kB / 422.7 MB, free: 5.758 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001164/0.3123, allocations: 0.8781 MB / 423.6 MB, free: 4.879 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.3123, allocations: 0 / 423.6 MB, free: 4.879 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001161/0.3135, allocations: 324 kB / 423.9 MB, free: 4.562 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00251/0.316, allocations: 1.88 MB / 425.8 MB, free: 2.598 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001968/0.318, allocations: 1.151 MB / 426.9 MB, free: 1.41 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.318, allocations: 1.938 kB / 426.9 MB, free: 1.41 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009568/0.3189, allocations: 0.7069 MB / 427.7 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001644/0.3206, allocations: 369.5 kB / 428 MB, free: 316 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02096/0.3416, allocations: 13.67 MB / 441.7 MB, free: 1.512 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007857/0.3424, allocations: 1.214 MB / 442.9 MB, free: 276 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006741/0.3431, allocations: 167.6 kB / 443.1 MB, free: 104 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008007/0.3439, allocations: 0.6217 MB / 443.7 MB, free: 15.51 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3439, allocations: 0 / 443.7 MB, free: 15.51 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07184/0.4157, allocations: 30.31 MB / 474 MB, free: 1.605 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000179/0.4159, allocations: 250.7 kB / 474.2 MB, free: 1.355 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.612/3.028, allocations: 0 / 474.2 MB, free: 1.355 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches