Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 110.5 kB / 17.73 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 187.1 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.328/1.328, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001575, allocations: 63.91 kB / 328 MB, free: 3.797 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09765/0.09924, allocations: 46.61 MB / 374.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.2242/0.3235, allocations: 12.09 MB / 386.8 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006963/0.3305, allocations: 3.309 MB / 390.1 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002185/0.3328, allocations: 36.28 kB / 390.1 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002267/0.3351, allocations: 0.7007 MB / 390.8 MB, free: 4.105 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002746/0.3378, allocations: 0.7778 MB / 391.6 MB, free: 3.539 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001079/0.3389, allocations: 409 kB / 392 MB, free: 3.277 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003383/0.3423, allocations: 2.411 MB / 394.4 MB, free: 1.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00137/0.3437, allocations: 0.9954 MB / 395.4 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001493/0.3452, allocations: 0.9093 MB / 396.3 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001/0.3462, allocations: 0.9817 MB / 397.3 MB, free: 476 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000275/0.3465, allocations: 233.8 kB / 397.5 MB, free: 472 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005213/0.347, allocations: 265.6 kB / 397.8 MB, free: 464 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002912/0.3473, allocations: 463.4 kB / 398.2 MB, free: 116 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001078/0.3484, allocations: 1.077 MB / 399.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003689/0.3521, allocations: 2.846 MB / 402.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.3521, allocations: 0 / 402.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.3522, allocations: 0 / 402.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.759e-05/0.3522, allocations: 1.094 kB / 402.1 MB, free: 14.33 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004323/0.3565, allocations: 2.204 MB / 404.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.43e-05/0.3566, allocations: 13.56 kB / 404.4 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003022/0.3569, allocations: 229.8 kB / 404.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001128/0.358, allocations: 287.8 kB / 404.9 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002171/0.3602, allocations: 1.134 MB / 406 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/0.3604, allocations: 117.6 kB / 406.1 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002884/0.3606, allocations: 165.2 kB / 406.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002675/0.3633, allocations: 1.507 MB / 407.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.331e-05/0.3634, allocations: 11.98 kB / 407.8 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001269/0.3635, allocations: 62.91 kB / 407.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.9e-05/0.3636, allocations: 37.97 kB / 407.9 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002155/0.3657, allocations: 1.041 MB / 408.9 MB, free: 9.949 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009515/0.3753, allocations: 6.255 MB / 415.2 MB, free: 4.723 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001665/0.377, allocations: 0.6172 MB / 415.8 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/0.378, allocations: 468.7 kB / 416.3 MB, free: 4.172 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.338e-05/0.3781, allocations: 12.77 kB / 416.3 MB, free: 4.168 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.197e-05/0.3781, allocations: 38.56 kB / 416.3 MB, free: 4.121 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 3.567e-06/0.3781, allocations: 0 / 416.3 MB, free: 4.121 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.005269/0.3834, allocations: 2.396 MB / 418.7 MB, free: 2.559 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.087e-05/0.3835, allocations: 111.2 kB / 418.8 MB, free: 2.434 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002072/0.3856, allocations: 1.31 MB / 420.1 MB, free: 1.703 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.267e-05/0.3857, allocations: 36.45 kB / 420.2 MB, free: 1.664 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000632/0.3863, allocations: 0.8763 MB / 421 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002144/0.3865, allocations: 274.2 kB / 421.3 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000348/0.3869, allocations: 208.2 kB / 421.5 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.387, allocations: 345.9 kB / 421.8 MB, free: 172 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006093/0.3877, allocations: 286.5 kB / 422.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001043/0.3887, allocations: 0.7381 MB / 422.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001541/0.3903, allocations: 1.084 MB / 423.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.3903, allocations: 4 kB / 423.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002382/0.3927, allocations: 1.272 MB / 425.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.552e-05/0.3927, allocations: 12 kB / 425.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.3927, allocations: 16 kB / 425.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005136/0.3933, allocations: 138.6 kB / 425.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008346/0.3941, allocations: 251.6 kB / 425.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004158/0.3983, allocations: 4.642 MB / 430.3 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001285/0.3996, allocations: 59.98 kB / 430.3 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/0.3997, allocations: 59.98 kB / 430.4 MB, free: 6.75 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0008365/0.4005, allocations: 353.5 kB / 430.7 MB, free: 6.395 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004143/0.401, allocations: 151.1 kB / 430.9 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00197/0.4029, allocations: 0.8257 MB / 431.7 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.226e-06/0.403, allocations: 11.94 kB / 431.7 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.617e-06/0.403, allocations: 4 kB / 431.7 MB, free: 5.383 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.709e-06/0.403, allocations: 3.984 kB / 431.7 MB, free: 5.379 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004494/0.4075, allocations: 2.334 MB / 434.1 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.167e-05/0.4075, allocations: 4 kB / 434.1 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000563/0.4081, allocations: 127.8 kB / 434.2 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004559/0.4085, allocations: 134.7 kB / 434.3 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.815e-05/0.4086, allocations: 20 kB / 434.3 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004413/0.413, allocations: 4.783 MB / 439.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.551e-06/0.413, allocations: 4 kB / 439.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002461/0.4155, allocations: 1.308 MB / 440.4 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009382/0.4165, allocations: 296 kB / 440.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005139/0.417, allocations: 16 kB / 440.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/0.418, allocations: 43.97 kB / 440.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.4182, allocations: 60.36 kB / 440.8 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-05/0.4183, allocations: 24 kB / 440.9 MB, free: 11.6 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001867/0.4201, allocations: 0.8781 MB / 441.7 MB, free: 10.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4202, allocations: 0 / 441.7 MB, free: 10.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001776/0.4219, allocations: 328 kB / 442.1 MB, free: 10.4 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002967/0.4249, allocations: 1.889 MB / 444 MB, free: 8.434 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002152/0.4271, allocations: 1.117 MB / 445.1 MB, free: 7.277 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.4271, allocations: 8.062 kB / 445.1 MB, free: 7.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001033/0.4281, allocations: 0.7036 MB / 445.8 MB, free: 6.527 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002091/0.4302, allocations: 359.2 kB / 446.1 MB, free: 6.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02195/0.4522, allocations: 11.73 MB / 457.9 MB, free: 9.746 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009431/0.4532, allocations: 1.214 MB / 459.1 MB, free: 8.504 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007427/0.454, allocations: 179.6 kB / 459.2 MB, free: 8.324 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007947/0.4548, allocations: 0.6086 MB / 459.9 MB, free: 7.715 MB / 382.1 MB Notification: Performance of SimCode: time 1.212e-06/0.4548, allocations: 0 / 459.9 MB, free: 7.715 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0745/0.5293, allocations: 31.17 MB / 491 MB, free: 8.441 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.6/14.13, allocations: 11.86 kB / 491 MB, free: 8.43 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches