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.00132/0.00132, allocations: 117.7 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001483/0.001483, allocations: 203.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 55.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3384/0.3399, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01091/0.3509, allocations: 8.243 MB / 417 MB, free: 9.254 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006139/0.3571, allocations: 2.75 MB / 419.8 MB, free: 6.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001319/0.3584, allocations: 23.94 kB / 419.8 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00215/0.3606, allocations: 0.5558 MB / 420.3 MB, free: 5.914 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002195/0.3629, allocations: 484.2 kB / 420.8 MB, free: 5.438 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009971/0.3639, allocations: 271.6 kB / 421.1 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00241/0.3663, allocations: 1.498 MB / 422.6 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00119/0.3675, allocations: 0.5886 MB / 423.2 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001209/0.3688, allocations: 0.572 MB / 423.7 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001123/0.3699, allocations: 0.6105 MB / 424.3 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004414/0.3704, allocations: 140 kB / 424.5 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000694/0.3711, allocations: 188 kB / 424.7 MB, free: 1.543 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003427/0.3715, allocations: 282.9 kB / 424.9 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001196/0.3727, allocations: 0.6765 MB / 425.6 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002618/0.3753, allocations: 1.76 MB / 427.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.3753, allocations: 0 / 427.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3753, allocations: 4 kB / 427.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.578e-05/0.3754, allocations: 3.938 kB / 427.4 MB, free: 14.81 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.003568/0.379, allocations: 1.476 MB / 428.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.3791, allocations: 8.031 kB / 428.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000264/0.3793, allocations: 156.3 kB / 429 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009107/0.3803, allocations: 203.3 kB / 429.2 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001809/0.3821, allocations: 0.7617 MB / 430 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.892e-05/0.3822, allocations: 78 kB / 430.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000208/0.3824, allocations: 103.8 kB / 430.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001954/0.3844, allocations: 0.9386 MB / 431.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.491e-05/0.3844, allocations: 0 / 431.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.258e-05/0.3845, allocations: 48 kB / 431.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.398e-05/0.3846, allocations: 24 kB / 431.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001449/0.386, allocations: 0.6481 MB / 431.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006281/0.3923, allocations: 3.918 MB / 435.7 MB, free: 6.109 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007715/0.3931, allocations: 443.1 kB / 436.2 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006125/0.3938, allocations: 280.6 kB / 436.4 MB, free: 5.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.378e-05/0.3938, allocations: 7.984 kB / 436.4 MB, free: 5.367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.3939, allocations: 42.55 kB / 436.5 MB, free: 5.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.565e-06/0.3939, allocations: 4 kB / 436.5 MB, free: 5.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.003468/0.3974, allocations: 1.543 MB / 438 MB, free: 3.676 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.614e-05/0.3975, allocations: 81.11 kB / 438.1 MB, free: 3.578 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001399/0.3989, allocations: 0.8488 MB / 439 MB, free: 2.719 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.332e-05/0.399, allocations: 33.7 kB / 439 MB, free: 2.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004346/0.3994, allocations: 0.5643 MB / 439.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001509/0.3996, allocations: 161.7 kB / 439.7 MB, free: 1.945 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001897/0.3998, allocations: 130.5 kB / 439.8 MB, free: 1.812 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.3999, allocations: 334 kB / 440.2 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000379/0.4003, allocations: 173.9 kB / 440.3 MB, free: 1.312 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005513/0.4009, allocations: 471.6 kB / 440.8 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001025/0.4019, allocations: 0.6762 MB / 441.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/0.4019, allocations: 4 kB / 441.5 MB, free: 15.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001532/0.4035, allocations: 0.7981 MB / 442.3 MB, free: 15.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.95e-05/0.4035, allocations: 12 kB / 442.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.847e-05/0.4036, allocations: 8 kB / 442.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003105/0.4039, allocations: 77.88 kB / 442.4 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005253/0.4044, allocations: 163.7 kB / 442.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002824/0.4073, allocations: 3.134 MB / 445.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008154/0.4081, allocations: 39.97 kB / 445.7 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.585e-05/0.4082, allocations: 32 kB / 445.7 MB, free: 11.34 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.0005054/0.4087, allocations: 273.5 kB / 446 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002528/0.409, allocations: 90.88 kB / 446.1 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001133/0.4101, allocations: 0.507 MB / 446.6 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.4102, allocations: 11.92 kB / 446.6 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.4102, allocations: 0 / 446.6 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.4102, allocations: 0 / 446.6 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002686/0.4129, allocations: 1.47 MB / 448.1 MB, free: 8.879 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-05/0.4129, allocations: 4.219 kB / 448.1 MB, free: 8.875 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003468/0.4133, allocations: 79.83 kB / 448.2 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000254/0.4136, allocations: 73.67 kB / 448.2 MB, free: 8.719 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.507e-05/0.4136, allocations: 8 kB / 448.2 MB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002661/0.4163, allocations: 3.127 MB / 451.4 MB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.4163, allocations: 0 / 451.4 MB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001551/0.4179, allocations: 0.8053 MB / 452.2 MB, free: 4.457 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004786/0.4184, allocations: 204 kB / 452.4 MB, free: 4.238 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002129/0.4186, allocations: 11.94 kB / 452.4 MB, free: 4.227 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005623/0.4192, allocations: 31.97 kB / 452.4 MB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.4193, allocations: 35.84 kB / 452.5 MB, free: 4.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-05/0.4194, allocations: 23.98 kB / 452.5 MB, free: 4.137 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001019/0.4204, allocations: 0.5693 MB / 453 MB, free: 3.574 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.893e-06/0.4204, allocations: 0 / 453 MB, free: 3.574 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001212/0.4216, allocations: 211.9 kB / 453.3 MB, free: 3.367 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.002081/0.4237, allocations: 1.374 MB / 454.6 MB, free: 1.938 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001503/0.4252, allocations: 0.7058 MB / 455.3 MB, free: 1.207 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/0.4253, allocations: 7.938 kB / 455.3 MB, free: 1.199 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007796/0.4261, allocations: 456.8 kB / 455.8 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001422/0.4275, allocations: 227.4 kB / 456 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01297/0.4405, allocations: 7.442 MB / 463.5 MB, free: 8.625 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008391/0.4414, allocations: 1.009 MB / 464.5 MB, free: 7.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005371/0.4419, allocations: 107.3 kB / 464.6 MB, free: 7.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005689/0.4425, allocations: 391.3 kB / 464.9 MB, free: 7.098 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4425, allocations: 0 / 464.9 MB, free: 7.098 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0577/0.5003, allocations: 19.75 MB / 484.7 MB, free: 3.641 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.76, allocations: 3.75 kB / 484.7 MB, free: 3.637 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.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