Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic",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.0008784/0.0008784, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.001033/0.001034, allocations: 184.2 kB / 17.57 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 223.3 MB / 241.6 MB, free: 14.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002603/0.0002603, allocations: 12 kB / 301.5 MB, free: 5.781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1005, allocations: 50.42 MB / 352 MB, free: 3.348 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01143/0.1119, allocations: 11.07 MB / 363 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005731/0.1177, allocations: 3.172 MB / 366.2 MB, free: 5.043 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001082/0.1188, allocations: 31.94 kB / 366.2 MB, free: 5.012 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00146/0.1203, allocations: 0.5554 MB / 366.8 MB, free: 4.453 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001489/0.1218, allocations: 0.5818 MB / 367.4 MB, free: 3.867 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006779/0.1225, allocations: 363.6 kB / 367.7 MB, free: 3.512 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001904/0.1244, allocations: 2.118 MB / 369.8 MB, free: 1.383 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001023/0.1254, allocations: 0.8346 MB / 370.7 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.206/0.3315, allocations: 0.6839 MB / 371.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001609/0.3331, allocations: 0.7861 MB / 372.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004162/0.3336, allocations: 101.5 kB / 372.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005967/0.3342, allocations: 144.6 kB / 372.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003329/0.3345, allocations: 302 kB / 372.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001284/0.3358, allocations: 0.8991 MB / 373.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00387/0.3397, allocations: 2.511 MB / 376.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.3397, allocations: 1.562 kB / 376.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.396e-06/0.3397, allocations: 2.094 kB / 376.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.734e-05/0.3398, allocations: 0 / 376.1 MB, free: 11.23 MB / 302.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.003667/0.3435, allocations: 1.755 MB / 377.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.866e-05/0.3435, allocations: 11 kB / 377.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000355/0.3439, allocations: 217.9 kB / 378.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001013/0.3449, allocations: 260 kB / 378.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001926/0.3468, allocations: 1.021 MB / 379.3 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001116/0.347, allocations: 116.5 kB / 379.5 MB, free: 9.711 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000242/0.3472, allocations: 161.9 kB / 379.6 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002692/0.3499, allocations: 1.496 MB / 381.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.117e-05/0.35, allocations: 4.078 kB / 381.1 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001207/0.3501, allocations: 64.53 kB / 381.2 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.502e-05/0.3502, allocations: 37.47 kB / 381.2 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002154/0.3523, allocations: 0.9867 MB / 382.2 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007814/0.3601, allocations: 6.6 MB / 388.8 MB, free: 5.238 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008734/0.361, allocations: 419 kB / 389.2 MB, free: 5.035 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004443/0.3615, allocations: 224.1 kB / 389.4 MB, free: 4.934 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.846e-05/0.3616, allocations: 5.344 kB / 389.4 MB, free: 4.934 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005382/0.3621, allocations: 276.3 kB / 389.7 MB, free: 4.742 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.963e-06/0.3621, allocations: 0 / 389.7 MB, free: 4.742 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.003372/0.3655, allocations: 1.791 MB / 391.5 MB, free: 3.531 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.615e-05/0.3656, allocations: 165.3 kB / 391.7 MB, free: 3.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001776/0.3673, allocations: 1.271 MB / 392.9 MB, free: 2.629 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.939e-05/0.3674, allocations: 37.39 kB / 393 MB, free: 2.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005787/0.368, allocations: 0.8716 MB / 393.8 MB, free: 1.816 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/0.3681, allocations: 208.3 kB / 394 MB, free: 1.641 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001147/0.3682, allocations: 95.64 kB / 394.1 MB, free: 1.574 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.906e-05/0.3683, allocations: 355.9 kB / 394.5 MB, free: 1.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000474/0.3688, allocations: 233.4 kB / 394.7 MB, free: 1.125 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007521/0.3696, allocations: 0.8065 MB / 395.5 MB, free: 236 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001462/0.3711, allocations: 1.132 MB / 396.7 MB, free: 15.22 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.909e-06/0.3711, allocations: 9.188 kB / 396.7 MB, free: 15.22 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002284/0.3734, allocations: 1.179 MB / 397.8 MB, free: 14.71 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.531e-05/0.3734, allocations: 44.81 kB / 397.9 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.463e-05/0.3735, allocations: 17.88 kB / 397.9 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002383/0.3737, allocations: 66.86 kB / 398 MB, free: 14.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007872/0.3745, allocations: 271.2 kB / 398.2 MB, free: 14.6 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002053/0.3766, allocations: 2.574 MB / 400.8 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/0.3778, allocations: 76.03 kB / 400.9 MB, free: 11.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.817e-05/0.3779, allocations: 62.47 kB / 400.9 MB, free: 11.91 MB / 318.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.0008294/0.3787, allocations: 357 kB / 401.3 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001987/0.3789, allocations: 137.6 kB / 401.4 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001081/0.38, allocations: 0.5572 MB / 402 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/0.38, allocations: 10.73 kB / 402 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.38, allocations: 4.812 kB / 402 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.3801, allocations: 0 / 402 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002841/0.3829, allocations: 1.875 MB / 403.9 MB, free: 9.902 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.3829, allocations: 7.562 kB / 403.9 MB, free: 9.898 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004128/0.3833, allocations: 109.3 kB / 404 MB, free: 9.879 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001545/0.3835, allocations: 46.61 kB / 404 MB, free: 9.848 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.652e-05/0.3835, allocations: 22.92 kB / 404.1 MB, free: 9.836 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001718/0.3853, allocations: 2.551 MB / 406.6 MB, free: 7.188 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.3853, allocations: 13.81 kB / 406.6 MB, free: 7.18 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001367/0.3867, allocations: 0.9394 MB / 407.6 MB, free: 6.551 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004353/0.3871, allocations: 260.1 kB / 407.8 MB, free: 6.316 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001377/0.3873, allocations: 18.25 kB / 407.8 MB, free: 6.305 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005393/0.3878, allocations: 31.5 kB / 407.9 MB, free: 6.293 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/0.3879, allocations: 55.94 kB / 407.9 MB, free: 6.266 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.077e-05/0.388, allocations: 22.91 kB / 407.9 MB, free: 6.258 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00126/0.3892, allocations: 0.8466 MB / 408.8 MB, free: 5.789 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3892, allocations: 0 / 408.8 MB, free: 5.789 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001363/0.3906, allocations: 306.1 kB / 409.1 MB, free: 5.758 MB / 318.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.0018/0.3924, allocations: 1.528 MB / 410.6 MB, free: 4.305 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001692/0.3941, allocations: 0.9401 MB / 411.6 MB, free: 3.387 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.3941, allocations: 0 / 411.6 MB, free: 3.387 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000683/0.3948, allocations: 474.9 kB / 412 MB, free: 2.918 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002233/0.3971, allocations: 313.7 kB / 412.3 MB, free: 2.617 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02081/0.4179, allocations: 12.89 MB / 425.2 MB, free: 4.574 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008765/0.4188, allocations: 1.177 MB / 426.4 MB, free: 3.371 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008322/0.4197, allocations: 175.3 kB / 426.6 MB, free: 3.195 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006948/0.4204, allocations: 0.5696 MB / 427.1 MB, free: 2.625 MB / 334.1 MB Notification: Performance of SimCode: time 1.643e-06/0.4204, allocations: 3.938 kB / 427.1 MB, free: 2.621 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4071/0.8275, allocations: 26.05 MB / 453.2 MB, free: 8.992 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003023/0.8278, allocations: 236 kB / 453.4 MB, free: 8.742 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.822/3.65, allocations: 3.688 kB / 453.4 MB, free: 8.742 MB / 366.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStatic.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches