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.001336/0.001336, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001423/0.001422, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002525/0.002526, allocations: 63.89 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3063/0.3088, allocations: 50.55 MB / 408.8 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009971/0.3188, allocations: 8.23 MB / 417.1 MB, free: 9.195 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005119/0.324, allocations: 2.753 MB / 419.8 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009165/0.3249, allocations: 23.94 kB / 419.8 MB, free: 6.414 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001568/0.3266, allocations: 0.5597 MB / 420.4 MB, free: 5.852 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001338/0.3279, allocations: 476.2 kB / 420.9 MB, free: 5.383 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006133/0.3285, allocations: 279.6 kB / 421.1 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001759/0.3303, allocations: 1.498 MB / 422.6 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008262/0.3311, allocations: 0.5847 MB / 423.2 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008604/0.332, allocations: 0.5641 MB / 423.8 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007907/0.3328, allocations: 0.6183 MB / 424.4 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001898/0.333, allocations: 140 kB / 424.5 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003884/0.3334, allocations: 188 kB / 424.7 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002501/0.3337, allocations: 282.9 kB / 425 MB, free: 1.211 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006976/0.3344, allocations: 0.6765 MB / 425.7 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00215/0.3365, allocations: 1.766 MB / 427.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3366, allocations: 0 / 427.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3366, allocations: 0 / 427.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.16e-05/0.3366, allocations: 3.938 kB / 427.5 MB, free: 14.75 MB / 350.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.002638/0.3393, allocations: 1.514 MB / 429 MB, free: 13.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.3393, allocations: 12.03 kB / 429 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000189/0.3395, allocations: 152.4 kB / 429.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007371/0.3402, allocations: 200 kB / 429.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001292/0.3415, allocations: 0.7702 MB / 430.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.511e-05/0.3416, allocations: 74 kB / 430.2 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.3418, allocations: 103.9 kB / 430.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001637/0.3434, allocations: 0.9464 MB / 431.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.192e-05/0.3435, allocations: 4 kB / 431.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.801e-05/0.3436, allocations: 40 kB / 431.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.816e-05/0.3436, allocations: 24 kB / 431.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/0.3449, allocations: 0.6558 MB / 431.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005317/0.3502, allocations: 3.92 MB / 435.9 MB, free: 6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007565/0.351, allocations: 460.7 kB / 436.3 MB, free: 5.523 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006408/0.3517, allocations: 284.6 kB / 436.6 MB, free: 5.242 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.424e-05/0.3517, allocations: 4 kB / 436.6 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.66e-05/0.3517, allocations: 34.56 kB / 436.6 MB, free: 5.195 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.354e-06/0.3518, allocations: 0 / 436.6 MB, free: 5.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.003189/0.355, allocations: 1.561 MB / 438.2 MB, free: 3.543 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.445e-05/0.355, allocations: 85.05 kB / 438.3 MB, free: 3.441 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001136/0.3562, allocations: 0.845 MB / 439.1 MB, free: 2.586 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.691e-05/0.3562, allocations: 37.7 kB / 439.1 MB, free: 2.543 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004515/0.3567, allocations: 0.5853 MB / 439.7 MB, free: 1.949 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.3568, allocations: 166.6 kB / 439.9 MB, free: 1.785 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001849/0.357, allocations: 130.6 kB / 440 MB, free: 1.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.3572, allocations: 334 kB / 440.3 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003604/0.3575, allocations: 173.9 kB / 440.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005992/0.3581, allocations: 471.6 kB / 441 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001012/0.3592, allocations: 0.6761 MB / 441.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.3592, allocations: 4 kB / 441.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00141/0.3606, allocations: 0.7988 MB / 442.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.3606, allocations: 12.06 kB / 442.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.3607, allocations: 11.94 kB / 442.5 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002748/0.3609, allocations: 85.61 kB / 442.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005074/0.3615, allocations: 159.7 kB / 442.7 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002842/0.3643, allocations: 3.134 MB / 445.9 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006181/0.3649, allocations: 35.94 kB / 445.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.058e-05/0.365, allocations: 36 kB / 445.9 MB, free: 11.17 MB / 366.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.0004381/0.3654, allocations: 261.6 kB / 446.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001413/0.3656, allocations: 95.44 kB / 446.3 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001039/0.3666, allocations: 0.4956 MB / 446.8 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.3667, allocations: 7.938 kB / 446.8 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.3667, allocations: 8 kB / 446.8 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.3667, allocations: 4.109 kB / 446.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002314/0.369, allocations: 1.481 MB / 448.3 MB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.369, allocations: 0 / 448.3 MB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003282/0.3694, allocations: 71.89 kB / 448.3 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002131/0.3696, allocations: 77.89 kB / 448.4 MB, free: 8.559 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.752e-05/0.3696, allocations: 8 kB / 448.4 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002692/0.3723, allocations: 3.123 MB / 451.5 MB, free: 5.156 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.975e-06/0.3724, allocations: 11.97 kB / 451.6 MB, free: 5.145 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001412/0.3738, allocations: 0.806 MB / 452.4 MB, free: 4.289 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003187/0.3741, allocations: 212.5 kB / 452.6 MB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.576e-05/0.3742, allocations: 15.94 kB / 452.6 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004242/0.3746, allocations: 27.98 kB / 452.6 MB, free: 4.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.579e-05/0.3747, allocations: 35.64 kB / 452.6 MB, free: 3.984 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.783e-05/0.3748, allocations: 19.98 kB / 452.7 MB, free: 3.965 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000814/0.3756, allocations: 0.5693 MB / 453.2 MB, free: 3.402 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3756, allocations: 4 kB / 453.2 MB, free: 3.398 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000848/0.3765, allocations: 212 kB / 453.4 MB, free: 3.191 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 (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.001842/0.3783, allocations: 1.374 MB / 454.8 MB, free: 1.762 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001346/0.3797, allocations: 0.7069 MB / 455.5 MB, free: 1.031 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.3797, allocations: 3.938 kB / 455.5 MB, free: 1.027 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007162/0.3804, allocations: 464.9 kB / 456 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00108/0.3815, allocations: 230.4 kB / 456.2 MB, free: 332 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01141/0.3929, allocations: 7.468 MB / 463.7 MB, free: 8.414 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007296/0.3937, allocations: 1.009 MB / 464.7 MB, free: 7.379 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004421/0.3941, allocations: 111.3 kB / 464.8 MB, free: 7.266 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005/0.3946, allocations: 391.3 kB / 465.2 MB, free: 6.883 MB / 382.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3946, allocations: 0 / 465.2 MB, free: 6.883 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3599/0.7546, allocations: 19.48 MB / 484.7 MB, free: 3.691 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/13.22, allocations: 7.156 kB / 484.7 MB, free: 3.688 MB / 398.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.1.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