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.001824/0.001824, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002097/0.002097, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.495/1.495, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001804/0.001804, allocations: 67.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3575/0.3593, allocations: 50.53 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01081/0.3702, allocations: 8.241 MB / 417 MB, free: 9.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00546/0.3757, allocations: 2.746 MB / 419.8 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001027/0.3768, allocations: 27.88 kB / 419.8 MB, free: 6.492 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001665/0.3785, allocations: 0.5598 MB / 420.3 MB, free: 5.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001463/0.38, allocations: 480.1 kB / 420.8 MB, free: 5.457 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006371/0.3806, allocations: 271.7 kB / 421.1 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001759/0.3824, allocations: 1.502 MB / 422.6 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000832/0.3832, allocations: 0.5886 MB / 423.2 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008113/0.384, allocations: 0.5603 MB / 423.7 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007331/0.3848, allocations: 0.6144 MB / 424.3 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000186/0.385, allocations: 140 kB / 424.5 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003605/0.3854, allocations: 188 kB / 424.7 MB, free: 1.566 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002558/0.3856, allocations: 282.9 kB / 424.9 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000679/0.3863, allocations: 0.6804 MB / 425.6 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002113/0.3884, allocations: 1.766 MB / 427.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3885, allocations: 4 kB / 427.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3885, allocations: 0 / 427.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.644e-05/0.3885, allocations: 0 / 427.4 MB, free: 14.83 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.002676/0.3912, allocations: 1.51 MB / 428.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.3912, allocations: 12.03 kB / 428.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001883/0.3914, allocations: 152.3 kB / 429.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000753/0.3922, allocations: 208 kB / 429.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001351/0.3936, allocations: 0.7702 MB / 430 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.849e-05/0.3936, allocations: 77.98 kB / 430.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001521/0.3938, allocations: 107.9 kB / 430.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001615/0.3954, allocations: 0.9386 MB / 431.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.438e-05/0.3955, allocations: 8 kB / 431.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.868e-05/0.3956, allocations: 40 kB / 431.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.423e-05/0.3956, allocations: 24 kB / 431.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001283/0.3969, allocations: 0.6481 MB / 431.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00555/0.4024, allocations: 3.923 MB / 435.8 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007613/0.4032, allocations: 451 kB / 436.2 MB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006088/0.4038, allocations: 276.6 kB / 436.5 MB, free: 5.332 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.14e-05/0.4039, allocations: 4 kB / 436.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.582e-05/0.4039, allocations: 42.56 kB / 436.5 MB, free: 5.277 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.314e-06/0.4039, allocations: 0 / 436.5 MB, free: 5.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.003231/0.4072, allocations: 1.572 MB / 438.1 MB, free: 3.613 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.156e-05/0.4073, allocations: 85.11 kB / 438.2 MB, free: 3.512 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001226/0.4085, allocations: 0.845 MB / 439 MB, free: 2.656 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.641e-05/0.4086, allocations: 33.7 kB / 439.1 MB, free: 2.617 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005114/0.4091, allocations: 0.5853 MB / 439.7 MB, free: 2.023 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001375/0.4092, allocations: 166.6 kB / 439.8 MB, free: 1.859 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000214/0.4094, allocations: 130.6 kB / 440 MB, free: 1.727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.4096, allocations: 334 kB / 440.3 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003699/0.41, allocations: 173.9 kB / 440.5 MB, free: 1.227 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006174/0.4106, allocations: 475.6 kB / 440.9 MB, free: 0.625 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/0.4117, allocations: 0.6762 MB / 441.6 MB, free: 15.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.072e-06/0.4117, allocations: 4 kB / 441.6 MB, free: 15.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001615/0.4134, allocations: 0.7986 MB / 442.4 MB, free: 15 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.23e-05/0.4134, allocations: 8 kB / 442.4 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.821e-05/0.4134, allocations: 11.98 kB / 442.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003147/0.4138, allocations: 89.88 kB / 442.5 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005359/0.4143, allocations: 155.7 kB / 442.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003089/0.4174, allocations: 3.134 MB / 445.8 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007124/0.4181, allocations: 35.94 kB / 445.8 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.969e-05/0.4182, allocations: 35.94 kB / 445.9 MB, free: 11.24 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.0004515/0.4187, allocations: 269.6 kB / 446.1 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001943/0.4189, allocations: 91.44 kB / 446.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001093/0.42, allocations: 0.5031 MB / 446.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.42, allocations: 4 kB / 446.7 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.42, allocations: 4 kB / 446.7 MB, free: 10.35 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.331e-06/0.42, allocations: 3.984 kB / 446.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002705/0.4227, allocations: 1.478 MB / 448.2 MB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.4227, allocations: 3.938 kB / 448.2 MB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000351/0.4231, allocations: 75.89 kB / 448.3 MB, free: 8.707 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002257/0.4233, allocations: 69.67 kB / 448.3 MB, free: 8.633 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.539e-05/0.4234, allocations: 12 kB / 448.4 MB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002882/0.4263, allocations: 3.131 MB / 451.5 MB, free: 5.219 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.4263, allocations: 4.031 kB / 451.5 MB, free: 5.215 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001423/0.4277, allocations: 0.8058 MB / 452.3 MB, free: 4.359 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003836/0.4281, allocations: 208.5 kB / 452.5 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001617/0.4283, allocations: 15.94 kB / 452.5 MB, free: 4.121 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005111/0.4288, allocations: 27.97 kB / 452.5 MB, free: 4.094 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.437e-05/0.4289, allocations: 35.72 kB / 452.6 MB, free: 4.059 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.413e-05/0.4289, allocations: 15.98 kB / 452.6 MB, free: 4.043 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009067/0.4298, allocations: 0.5771 MB / 453.2 MB, free: 3.473 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4299, allocations: 4 kB / 453.2 MB, free: 3.469 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009041/0.4308, allocations: 208 kB / 453.4 MB, free: 3.266 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.001946/0.4327, allocations: 1.37 MB / 454.8 MB, free: 1.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0014/0.4341, allocations: 0.7056 MB / 455.5 MB, free: 1.109 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.4341, allocations: 3.938 kB / 455.5 MB, free: 1.105 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007397/0.4349, allocations: 462.3 kB / 455.9 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001191/0.4361, allocations: 232.8 kB / 456.1 MB, free: 416 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01274/0.4488, allocations: 7.477 MB / 463.6 MB, free: 8.484 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000887/0.4498, allocations: 1.009 MB / 464.6 MB, free: 7.449 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004536/0.4502, allocations: 115.3 kB / 464.7 MB, free: 7.332 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005379/0.4508, allocations: 395.2 kB / 465.1 MB, free: 6.945 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4508, allocations: 0 / 465.1 MB, free: 6.945 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08589/0.5367, allocations: 19.47 MB / 484.6 MB, free: 3.766 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.19/12.73, allocations: 7.812 kB / 484.6 MB, free: 3.758 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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.csv","/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