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.001182/0.001182, 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.001304/0.001304, 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.37/1.37, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2684, 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.008938/0.2774, allocations: 8.241 MB / 417 MB, free: 9.258 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004984/0.2824, allocations: 2.746 MB / 419.8 MB, free: 6.508 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001049/0.2835, allocations: 23.94 kB / 419.8 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001667/0.2852, allocations: 0.5948 MB / 420.4 MB, free: 5.887 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00163/0.2869, allocations: 0.5002 MB / 420.9 MB, free: 5.383 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006805/0.2875, allocations: 267.6 kB / 421.1 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001713/0.2893, allocations: 1.509 MB / 422.6 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007852/0.2901, allocations: 0.5847 MB / 423.2 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008058/0.2909, allocations: 0.572 MB / 423.8 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006315/0.2915, allocations: 0.6143 MB / 424.4 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001667/0.2917, allocations: 140 kB / 424.5 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003555/0.2921, allocations: 188 kB / 424.7 MB, free: 1.484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001958/0.2923, allocations: 286.9 kB / 425 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006041/0.2929, allocations: 0.6765 MB / 425.7 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001859/0.2948, allocations: 1.77 MB / 427.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.2948, allocations: 0 / 427.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2948, allocations: 0 / 427.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.128e-05/0.2948, allocations: 4 kB / 427.5 MB, free: 14.74 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.002447/0.2973, allocations: 1.506 MB / 429 MB, free: 13.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.2973, allocations: 8.031 kB / 429 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001519/0.2975, allocations: 148.4 kB / 429.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007239/0.2982, allocations: 215.9 kB / 429.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001279/0.2995, allocations: 0.7702 MB / 430.1 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.308e-05/0.2996, allocations: 73.94 kB / 430.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001385/0.2997, allocations: 108 kB / 430.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001503/0.3012, allocations: 0.9385 MB / 431.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.401e-05/0.3013, allocations: 4 kB / 431.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.619e-05/0.3014, allocations: 48 kB / 431.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.002e-05/0.3014, allocations: 24 kB / 431.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001223/0.3026, allocations: 0.6442 MB / 431.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004924/0.3076, allocations: 3.927 MB / 435.9 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006903/0.3083, allocations: 447.6 kB / 436.3 MB, free: 5.523 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005763/0.3089, allocations: 280.6 kB / 436.6 MB, free: 5.246 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.208e-05/0.3089, allocations: 4 kB / 436.6 MB, free: 5.242 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.538e-05/0.309, allocations: 38.56 kB / 436.6 MB, free: 5.195 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 4.819e-06/0.309, allocations: 4 kB / 436.6 MB, free: 5.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.002915/0.3119, allocations: 1.568 MB / 438.2 MB, free: 3.531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.531e-05/0.312, allocations: 81.11 kB / 438.3 MB, free: 3.434 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001049/0.313, allocations: 0.845 MB / 439.1 MB, free: 2.578 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.344e-05/0.3131, allocations: 33.7 kB / 439.1 MB, free: 2.539 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003918/0.3135, allocations: 0.5814 MB / 439.7 MB, free: 1.949 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001271/0.3136, allocations: 166.6 kB / 439.9 MB, free: 1.785 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002074/0.3138, allocations: 138.6 kB / 440 MB, free: 1.645 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.314, allocations: 330 kB / 440.3 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003499/0.3143, allocations: 169.9 kB / 440.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005142/0.3148, allocations: 479.6 kB / 441 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008851/0.3157, allocations: 0.6762 MB / 441.7 MB, free: 15.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.3158, allocations: 7.938 kB / 441.7 MB, free: 15.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001283/0.317, allocations: 0.7909 MB / 442.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.3171, allocations: 8 kB / 442.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.3171, allocations: 12 kB / 442.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002742/0.3174, allocations: 85.61 kB / 442.6 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004927/0.3179, allocations: 160 kB / 442.7 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002269/0.3202, allocations: 3.134 MB / 445.8 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006033/0.3208, allocations: 39.94 kB / 445.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.511e-05/0.3208, allocations: 35.94 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.0003883/0.3212, allocations: 265.6 kB / 446.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/0.3214, allocations: 91.44 kB / 446.3 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009565/0.3223, allocations: 0.507 MB / 446.8 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.3223, allocations: 4 kB / 446.8 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.3224, allocations: 0 / 446.8 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.782e-06/0.3224, allocations: 4.109 kB / 446.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002085/0.3245, allocations: 1.481 MB / 448.3 MB, free: 8.707 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.3245, allocations: 4.219 kB / 448.3 MB, free: 8.703 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003226/0.3248, allocations: 79.84 kB / 448.4 MB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002097/0.325, allocations: 69.67 kB / 448.4 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.987e-05/0.3251, allocations: 15.98 kB / 448.4 MB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002277/0.3273, allocations: 3.123 MB / 451.6 MB, free: 5.141 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.3274, allocations: 4 kB / 451.6 MB, free: 5.137 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001271/0.3286, allocations: 0.8097 MB / 452.4 MB, free: 4.277 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002807/0.3289, allocations: 200.5 kB / 452.6 MB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.857e-05/0.329, allocations: 19.92 kB / 452.6 MB, free: 4.043 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004299/0.3295, allocations: 23.98 kB / 452.6 MB, free: 4.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.666e-05/0.3296, allocations: 39.84 kB / 452.6 MB, free: 3.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.732e-05/0.3296, allocations: 16 kB / 452.7 MB, free: 3.965 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007207/0.3304, allocations: 0.5771 MB / 453.2 MB, free: 3.395 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3304, allocations: 0 / 453.2 MB, free: 3.395 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008082/0.3312, allocations: 208 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.001554/0.3327, allocations: 1.384 MB / 454.8 MB, free: 1.754 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.3339, allocations: 0.7101 MB / 455.5 MB, free: 1.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3339, allocations: 0 / 455.5 MB, free: 1.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006584/0.3346, allocations: 456.8 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.001083/0.3357, allocations: 227.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.01011/0.3458, allocations: 7.477 MB / 463.7 MB, free: 8.406 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006013/0.3465, allocations: 1.009 MB / 464.7 MB, free: 7.371 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004268/0.3469, allocations: 103.3 kB / 464.8 MB, free: 7.266 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004353/0.3474, allocations: 399.2 kB / 465.2 MB, free: 6.875 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3474, allocations: 0 / 465.2 MB, free: 6.875 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05093/0.3983, allocations: 19.48 MB / 484.7 MB, free: 3.691 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.82, allocations: 7.25 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 & 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.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