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.001433/0.001433, 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.001545/0.001545, 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.396/1.396, 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.001785/0.001785, allocations: 56.25 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09085/0.09265, allocations: 46.63 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.1904/0.283, allocations: 11.69 MB / 386.4 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006623/0.2897, allocations: 3.218 MB / 389.6 MB, free: 4.828 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001583/0.2914, allocations: 34.94 kB / 389.6 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00173/0.2932, allocations: 0.6432 MB / 390.2 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002019/0.2952, allocations: 0.675 MB / 390.9 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008847/0.2961, allocations: 399 kB / 391.3 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002728/0.2988, allocations: 2.248 MB / 393.6 MB, free: 2.531 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001485/0.3003, allocations: 0.9954 MB / 394.6 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001739/0.3021, allocations: 0.8316 MB / 395.4 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001504/0.3036, allocations: 0.9182 MB / 396.3 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003692/0.304, allocations: 216.8 kB / 396.5 MB, free: 1.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006911/0.3047, allocations: 253.6 kB / 396.8 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003146/0.305, allocations: 426.8 kB / 397.2 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001147/0.3062, allocations: 1.017 MB / 398.2 MB, free: 124 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00424/0.3104, allocations: 2.691 MB / 400.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.3105, allocations: 0 / 400.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.3105, allocations: 0 / 400.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.551e-05/0.3106, allocations: 0 / 400.9 MB, free: 15.09 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.004481/0.315, allocations: 2.113 MB / 403 MB, free: 13.69 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.3151, allocations: 10.38 kB / 403 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003013/0.3154, allocations: 222.2 kB / 403.2 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008639/0.3163, allocations: 270.5 kB / 403.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002002/0.3183, allocations: 1.059 MB / 404.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001181/0.3184, allocations: 117.1 kB / 404.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003151/0.3188, allocations: 158.1 kB / 404.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002886/0.3217, allocations: 1.491 MB / 406.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.257e-05/0.3217, allocations: 7.484 kB / 406.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001382/0.3219, allocations: 66.66 kB / 406.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.367e-05/0.3219, allocations: 38.09 kB / 406.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002115/0.3241, allocations: 0.972 MB / 407.4 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01008/0.3342, allocations: 6.538 MB / 413.9 MB, free: 5.387 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009214/0.3351, allocations: 400.7 kB / 414.3 MB, free: 5.188 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004913/0.3356, allocations: 217.4 kB / 414.5 MB, free: 5.086 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.376e-05/0.3357, allocations: 5.312 kB / 414.5 MB, free: 5.082 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006143/0.3363, allocations: 272.4 kB / 414.8 MB, free: 4.887 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.285e-06/0.3363, allocations: 3.938 kB / 414.8 MB, free: 4.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.003763/0.3401, allocations: 1.785 MB / 416.6 MB, free: 3.648 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/0.3402, allocations: 165.4 kB / 416.8 MB, free: 3.457 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001865/0.3421, allocations: 1.274 MB / 418 MB, free: 2.742 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.39e-05/0.3422, allocations: 38.73 kB / 418.1 MB, free: 2.703 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007894/0.343, allocations: 0.898 MB / 419 MB, free: 1.898 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002072/0.3432, allocations: 217.6 kB / 419.2 MB, free: 1.711 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003162/0.3435, allocations: 225 kB / 419.4 MB, free: 1.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.3437, allocations: 352.6 kB / 419.7 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004705/0.3442, allocations: 228.2 kB / 420 MB, free: 1.125 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009327/0.3451, allocations: 0.8048 MB / 420.8 MB, free: 224 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001563/0.3467, allocations: 1.118 MB / 421.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.061e-05/0.3467, allocations: 6.062 kB / 421.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002107/0.3488, allocations: 1.181 MB / 423.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.173e-05/0.3489, allocations: 41.7 kB / 423.1 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.407e-05/0.3489, allocations: 19.94 kB / 423.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002401/0.3492, allocations: 70.39 kB / 423.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007703/0.35, allocations: 263.6 kB / 423.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002337/0.3523, allocations: 2.78 MB / 426.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009995/0.3533, allocations: 63.92 kB / 426.3 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.969e-05/0.3534, allocations: 68.09 kB / 426.4 MB, free: 10.69 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.0005977/0.354, allocations: 357.3 kB / 426.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001767/0.3542, allocations: 139 kB / 426.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001067/0.3553, allocations: 0.5489 MB / 427.4 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.3553, allocations: 12 kB / 427.4 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.3553, allocations: 0 / 427.4 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.3553, allocations: 3.984 kB / 427.4 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002939/0.3583, allocations: 1.863 MB / 429.3 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.744e-06/0.3583, allocations: 4 kB / 429.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004099/0.3587, allocations: 107.8 kB / 429.4 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001474/0.3589, allocations: 41.7 kB / 429.4 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.718e-05/0.3589, allocations: 16 kB / 429.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00236/0.3613, allocations: 2.765 MB / 432.2 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.385e-06/0.3613, allocations: 8.094 kB / 432.2 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001484/0.3628, allocations: 0.9284 MB / 433.2 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004495/0.3632, allocations: 260.2 kB / 433.4 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001415/0.3634, allocations: 16 kB / 433.4 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005111/0.3639, allocations: 31.97 kB / 433.5 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.364, allocations: 59.59 kB / 433.5 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-05/0.3641, allocations: 20 kB / 433.5 MB, free: 3.012 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001247/0.3653, allocations: 0.8461 MB / 434.4 MB, free: 2.164 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3653, allocations: 0 / 434.4 MB, free: 2.164 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001182/0.3665, allocations: 304 kB / 434.7 MB, free: 1.867 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.001936/0.3685, allocations: 1.497 MB / 436.2 MB, free: 296 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001649/0.3701, allocations: 0.9328 MB / 437.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.3701, allocations: 4.75 kB / 437.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007959/0.3709, allocations: 477.4 kB / 437.6 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001701/0.3727, allocations: 333.8 kB / 437.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01708/0.3898, allocations: 10.94 MB / 448.8 MB, free: 2.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009804/0.3908, allocations: 1.178 MB / 450 MB, free: 1.539 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000677/0.3915, allocations: 163.3 kB / 450.2 MB, free: 1.375 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007424/0.3922, allocations: 0.5657 MB / 450.7 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3922, allocations: 4 kB / 450.7 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07874/0.471, allocations: 27.76 MB / 478.5 MB, free: 4.941 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.48, allocations: 15.86 kB / 478.5 MB, free: 4.926 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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