Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",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.001267/0.001267, allocations: 110.6 kB / 17.73 MB, free: 5.34 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.001358/0.001358, allocations: 194.9 kB / 18.67 MB, free: 4.406 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.295/1.295, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001302/0.001302, allocations: 47.94 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09093/0.09224, allocations: 46.62 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.192/0.2843, allocations: 11.69 MB / 386.3 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007706/0.2921, allocations: 3.217 MB / 389.6 MB, free: 4.828 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002303/0.2945, allocations: 35.69 kB / 389.6 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002383/0.2969, allocations: 0.6687 MB / 390.3 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003135/0.3001, allocations: 0.7314 MB / 391 MB, free: 3.934 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001283/0.3014, allocations: 398.5 kB / 391.4 MB, free: 3.68 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003828/0.3052, allocations: 2.252 MB / 393.6 MB, free: 2.469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00171/0.307, allocations: 0.9984 MB / 394.6 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001861/0.3088, allocations: 0.843 MB / 395.5 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00147/0.3103, allocations: 0.9139 MB / 396.4 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004076/0.3108, allocations: 216.4 kB / 396.6 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007934/0.3116, allocations: 254.2 kB / 396.9 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003157/0.3119, allocations: 431 kB / 397.3 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001335/0.3132, allocations: 1.018 MB / 398.3 MB, free: 48 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00405/0.3173, allocations: 2.689 MB / 401 MB, free: 15.01 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.3173, allocations: 2.484 kB / 401 MB, free: 15.01 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3173, allocations: 0.5625 kB / 401 MB, free: 15.01 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.518e-05/0.3174, allocations: 4 kB / 401 MB, free: 15.01 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004694/0.3221, allocations: 2.107 MB / 403.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.3222, allocations: 9.469 kB / 403.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003205/0.3225, allocations: 223.2 kB / 403.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009563/0.3235, allocations: 269.3 kB / 403.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002095/0.3256, allocations: 1.054 MB / 404.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.538e-05/0.3257, allocations: 117.1 kB / 404.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002662/0.326, allocations: 157.7 kB / 404.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002991/0.329, allocations: 1.49 MB / 406.4 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.252e-05/0.3291, allocations: 11.14 kB / 406.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001475/0.3292, allocations: 63.44 kB / 406.5 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.73e-05/0.3293, allocations: 38.78 kB / 406.5 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002113/0.3314, allocations: 0.971 MB / 407.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009734/0.3411, allocations: 6.542 MB / 414 MB, free: 5.312 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008938/0.3421, allocations: 394.5 kB / 414.4 MB, free: 5.117 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004625/0.3426, allocations: 222 kB / 414.6 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.96e-05/0.3426, allocations: 8.938 kB / 414.6 MB, free: 5.004 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005459/0.3432, allocations: 274 kB / 414.9 MB, free: 4.809 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.435e-06/0.3432, allocations: 0 / 414.9 MB, free: 4.809 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.004019/0.3472, allocations: 1.785 MB / 416.7 MB, free: 3.574 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.3474, allocations: 164.2 kB / 416.8 MB, free: 3.383 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001986/0.3494, allocations: 1.27 MB / 418.1 MB, free: 2.672 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.471e-05/0.3495, allocations: 49.23 kB / 418.2 MB, free: 2.621 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007701/0.3503, allocations: 0.8991 MB / 419.1 MB, free: 1.816 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002269/0.3505, allocations: 218.3 kB / 419.3 MB, free: 1.629 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003344/0.3509, allocations: 216.7 kB / 419.5 MB, free: 1.496 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.351, allocations: 351.5 kB / 419.8 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005545/0.3516, allocations: 232.8 kB / 420.1 MB, free: 1.047 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009211/0.3525, allocations: 0.8049 MB / 420.9 MB, free: 144 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001614/0.3542, allocations: 1.11 MB / 422 MB, free: 15.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.369e-05/0.3542, allocations: 6.281 kB / 422 MB, free: 15.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002328/0.3565, allocations: 1.189 MB / 423.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.983e-05/0.3566, allocations: 37.7 kB / 423.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.204e-05/0.3566, allocations: 24.62 kB / 423.2 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002499/0.3569, allocations: 65.7 kB / 423.3 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007585/0.3577, allocations: 267.6 kB / 423.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002024/0.3597, allocations: 2.773 MB / 426.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001212/0.3609, allocations: 72.02 kB / 426.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.804e-05/0.361, allocations: 60 kB / 426.5 MB, free: 10.58 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006147/0.3616, allocations: 353.3 kB / 426.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000198/0.3618, allocations: 147 kB / 426.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001007/0.3629, allocations: 0.5451 MB / 427.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.7e-06/0.3629, allocations: 4.094 kB / 427.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.3629, allocations: 7.984 kB / 427.5 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.757e-06/0.3629, allocations: 11.86 kB / 427.5 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002814/0.3657, allocations: 1.866 MB / 429.4 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.623e-06/0.3657, allocations: 4 kB / 429.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004202/0.3662, allocations: 103.9 kB / 429.5 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001498/0.3663, allocations: 41.64 kB / 429.5 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.739e-05/0.3664, allocations: 19.98 kB / 429.5 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001817/0.3682, allocations: 2.769 MB / 432.3 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.3682, allocations: 4 kB / 432.3 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001477/0.3697, allocations: 0.9246 MB / 433.2 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005216/0.3702, allocations: 260.2 kB / 433.5 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001607/0.3704, allocations: 16 kB / 433.5 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000546/0.371, allocations: 31.97 kB / 433.5 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.3711, allocations: 59.59 kB / 433.6 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-05/0.3711, allocations: 20 kB / 433.6 MB, free: 2.895 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001225/0.3724, allocations: 0.8461 MB / 434.5 MB, free: 2.047 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3724, allocations: 0 / 434.5 MB, free: 2.047 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001301/0.3737, allocations: 304 kB / 434.8 MB, free: 1.75 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1,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.001866/0.3756, allocations: 1.497 MB / 436.3 MB, free: 176 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001596/0.3772, allocations: 0.9332 MB / 437.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.3772, allocations: 320 / 437.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007314/0.3779, allocations: 485 kB / 437.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001863/0.3798, allocations: 326.4 kB / 438 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01737/0.3972, allocations: 10.94 MB / 448.9 MB, free: 2.637 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007613/0.398, allocations: 1.178 MB / 450.1 MB, free: 1.426 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006843/0.3987, allocations: 171.3 kB / 450.3 MB, free: 1.254 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007073/0.3994, allocations: 0.5695 MB / 450.8 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3994, allocations: 0 / 450.8 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06629/0.4657, allocations: 27.76 MB / 478.6 MB, free: 4.832 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.84, allocations: 19.8 kB / 478.6 MB, free: 4.812 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_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_QuasiStationary.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_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_QuasiStationary/DCPM_QuasiStationary.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches