Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007496/0.0007496, allocations: 91.88 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009098/0.0009101, allocations: 203 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.199/1.199, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001918/0.0001917, allocations: 8 kB / 307.8 MB, free: 0.7188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07956/0.07976, allocations: 51.53 MB / 359.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007435/0.08723, allocations: 7.706 MB / 367.1 MB, free: 5.441 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004155/0.09142, allocations: 2.704 MB / 369.8 MB, free: 2.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008028/0.09225, allocations: 23.94 kB / 369.8 MB, free: 2.707 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001432/0.09369, allocations: 0.4941 MB / 370.3 MB, free: 2.211 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001254/0.09496, allocations: 417 kB / 370.7 MB, free: 1.801 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005437/0.09552, allocations: 235.8 kB / 370.9 MB, free: 1.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001535/0.09706, allocations: 1.43 MB / 372.4 MB, free: 140 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1506/0.2477, allocations: 492.7 kB / 372.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001054/0.2488, allocations: 488.8 kB / 373.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009162/0.2497, allocations: 0.5292 MB / 373.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002601/0.25, allocations: 65.69 kB / 373.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005031/0.2505, allocations: 111.9 kB / 374 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002046/0.2507, allocations: 207.3 kB / 374.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007988/0.2515, allocations: 0.6114 MB / 374.8 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001677/0.2532, allocations: 1.646 MB / 376.5 MB, free: 9.574 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2532, allocations: 0 / 376.5 MB, free: 9.574 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2532, allocations: 5.781 kB / 376.5 MB, free: 9.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.461e-05/0.2532, allocations: 0 / 376.5 MB, free: 9.57 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.001931/0.2552, allocations: 1.279 MB / 377.8 MB, free: 8.809 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.2552, allocations: 11.03 kB / 377.8 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000159/0.2554, allocations: 149.9 kB / 377.9 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006801/0.2561, allocations: 206 kB / 378.1 MB, free: 8.699 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001022/0.2571, allocations: 0.7558 MB / 378.9 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.868e-05/0.2572, allocations: 71.66 kB / 379 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001242/0.2573, allocations: 99.41 kB / 379.1 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001623/0.2589, allocations: 0.9516 MB / 380 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.172e-05/0.259, allocations: 5.641 kB / 380 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.07e-05/0.2591, allocations: 42.81 kB / 380.1 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.317e-05/0.2591, allocations: 32.52 kB / 380.1 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001212/0.2603, allocations: 0.6627 MB / 380.7 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004375/0.2647, allocations: 3.976 MB / 384.7 MB, free: 6.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005878/0.2653, allocations: 455.5 kB / 385.2 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000517/0.2658, allocations: 275.3 kB / 385.4 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.986e-05/0.2659, allocations: 4.438 kB / 385.4 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.089e-05/0.2659, allocations: 36.84 kB / 385.5 MB, free: 5.863 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 2.665e-06/0.2659, allocations: 0 / 385.5 MB, free: 5.863 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002655/0.2685, allocations: 1.578 MB / 387.1 MB, free: 4.871 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.2686, allocations: 89.14 kB / 387.1 MB, free: 4.773 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001046/0.2696, allocations: 0.8451 MB / 388 MB, free: 4.406 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/0.2697, allocations: 31.55 kB / 388 MB, free: 4.371 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002504/0.2699, allocations: 0.5708 MB / 388.6 MB, free: 3.918 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.77e-05/0.27, allocations: 165.3 kB / 388.7 MB, free: 3.793 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.457e-05/0.2701, allocations: 62 kB / 388.8 MB, free: 3.754 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.919e-05/0.2701, allocations: 335.6 kB / 389.1 MB, free: 3.438 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003379/0.2705, allocations: 175.9 kB / 389.3 MB, free: 3.379 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004212/0.2709, allocations: 486.2 kB / 389.8 MB, free: 2.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007913/0.2717, allocations: 0.6862 MB / 390.5 MB, free: 2.398 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.2717, allocations: 2 kB / 390.5 MB, free: 2.398 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001211/0.273, allocations: 0.8027 MB / 391.3 MB, free: 2.102 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.273, allocations: 8 kB / 391.3 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.273, allocations: 11.28 kB / 391.3 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002268/0.2732, allocations: 85.41 kB / 391.4 MB, free: 2.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000462/0.2737, allocations: 161.4 kB / 391.5 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001767/0.2755, allocations: 2.873 MB / 394.4 MB, free: 15.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005548/0.276, allocations: 41.75 kB / 394.4 MB, free: 15.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.773e-05/0.2761, allocations: 40.48 kB / 394.5 MB, free: 15.24 MB / 318.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 (85): * 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: 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.0003874/0.2765, allocations: 267.8 kB / 394.7 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.2766, allocations: 86.45 kB / 394.8 MB, free: 14.99 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009801/0.2776, allocations: 0.5222 MB / 395.4 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.2776, allocations: 8.422 kB / 395.4 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.2776, allocations: 4.25 kB / 395.4 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.2776, allocations: 1.344 kB / 395.4 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002081/0.2797, allocations: 1.489 MB / 396.9 MB, free: 13.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.2798, allocations: 2.75 kB / 396.9 MB, free: 13.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003148/0.2801, allocations: 76.56 kB / 396.9 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001856/0.2803, allocations: 77.36 kB / 397 MB, free: 13.63 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.429e-05/0.2803, allocations: 8.125 kB / 397 MB, free: 13.63 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001963/0.2823, allocations: 2.87 MB / 399.9 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.2823, allocations: 1.562 kB / 399.9 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001357/0.2837, allocations: 0.8156 MB / 400.7 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003184/0.284, allocations: 205.9 kB / 400.9 MB, free: 10.02 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001307/0.2841, allocations: 8.312 kB / 400.9 MB, free: 10.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004355/0.2846, allocations: 41.2 kB / 401 MB, free: 9.996 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.278e-05/0.2846, allocations: 30.61 kB / 401 MB, free: 9.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.696e-05/0.2847, allocations: 18.98 kB / 401 MB, free: 9.973 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008043/0.2855, allocations: 0.5735 MB / 401.6 MB, free: 9.648 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2855, allocations: 1.531 kB / 401.6 MB, free: 9.648 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009235/0.2864, allocations: 211.9 kB / 401.8 MB, free: 9.625 MB / 318.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 (39): * Single equations (assignments): 37 * 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.001641/0.2881, allocations: 1.396 MB / 403.2 MB, free: 8.562 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001102/0.2892, allocations: 0.7141 MB / 403.9 MB, free: 8.145 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2892, allocations: 2.875 kB / 403.9 MB, free: 8.145 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005976/0.2898, allocations: 462.2 kB / 404.4 MB, free: 7.816 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00122/0.291, allocations: 216.1 kB / 404.6 MB, free: 7.715 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01145/0.3025, allocations: 8.529 MB / 413.1 MB, free: 344 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005799/0.3031, allocations: 1.019 MB / 414.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004062/0.3035, allocations: 107.3 kB / 414.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004282/0.3039, allocations: 391.3 kB / 414.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.304, allocations: 0 / 414.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03294/0.3369, allocations: 18.22 MB / 432.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002216/0.3372, allocations: 235.7 kB / 433 MB, free: 12.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.969/2.306, allocations: 0 / 433 MB, free: 12.68 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches