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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001762/0.001762, allocations: 116.9 kB / 18.41 MB, free: 4.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002177/0.002177, allocations: 186.9 kB / 21.34 MB, free: 1.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 222.9 MB / 247 MB, free: 4.195 MB / 190.1 MB " [Timeout remaining time 178] 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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 47.92 kB / 358.7 MB, free: 8.297 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1017, allocations: 49.43 MB / 408.1 MB, free: 6.82 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01473/0.1165, allocations: 11.75 MB / 419.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0065/0.123, allocations: 3.219 MB / 423.1 MB, free: 7.793 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001398/0.1245, allocations: 39.88 kB / 423.1 MB, free: 7.754 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001826/0.1263, allocations: 0.648 MB / 423.8 MB, free: 7.102 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002209/0.1286, allocations: 0.6665 MB / 424.4 MB, free: 6.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001/0.1296, allocations: 403.5 kB / 424.8 MB, free: 6.035 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00315/0.1327, allocations: 2.254 MB / 427.1 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00141/0.1342, allocations: 0.985 MB / 428.1 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001282/0.1355, allocations: 0.8365 MB / 428.9 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001208/0.1367, allocations: 0.91 MB / 429.8 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003072/0.137, allocations: 216 kB / 430 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005342/0.1376, allocations: 260 kB / 430.3 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003597/0.1379, allocations: 430.5 kB / 430.7 MB, free: 100 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1888/0.3267, allocations: 1.012 MB / 431.7 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002865/0.3296, allocations: 2.693 MB / 434.4 MB, free: 8.879 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3297, allocations: 3.656 kB / 434.4 MB, free: 8.879 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3297, allocations: 0 / 434.4 MB, free: 8.879 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.615e-05/0.3298, allocations: 0 / 434.4 MB, free: 8.879 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003425/0.3332, allocations: 2.108 MB / 436.5 MB, free: 7.801 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.3332, allocations: 12.69 kB / 436.5 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007479/0.334, allocations: 264.4 kB / 436.8 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001641/0.3356, allocations: 1.051 MB / 437.8 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001403/0.3358, allocations: 115.5 kB / 437.9 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002884/0.3361, allocations: 160.1 kB / 438.1 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002529/0.3386, allocations: 1.487 MB / 439.6 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.553e-05/0.3387, allocations: 13.19 kB / 439.6 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001204/0.3388, allocations: 62.19 kB / 439.7 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.396e-05/0.3389, allocations: 42.47 kB / 439.7 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001861/0.3407, allocations: 0.9739 MB / 440.7 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007657/0.3484, allocations: 6.53 MB / 447.2 MB, free: 3.891 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007688/0.3492, allocations: 408.5 kB / 447.6 MB, free: 3.863 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004245/0.3497, allocations: 224.1 kB / 447.8 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.761e-05/0.3497, allocations: 9.078 kB / 447.8 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004705/0.3502, allocations: 266.3 kB / 448.1 MB, free: 3.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 3.086e-06/0.3502, allocations: 0 / 448.1 MB, free: 3.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.003237/0.3534, allocations: 1.79 MB / 449.9 MB, free: 2.945 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.619e-05/0.3535, allocations: 167.3 kB / 450 MB, free: 2.754 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001772/0.3553, allocations: 1.277 MB / 451.3 MB, free: 2.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.902e-05/0.3554, allocations: 34.86 kB / 451.4 MB, free: 2.539 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005374/0.3559, allocations: 0.8946 MB / 452.3 MB, free: 2.098 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001261/0.356, allocations: 217.2 kB / 452.5 MB, free: 1.969 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002514/0.3563, allocations: 221.6 kB / 452.7 MB, free: 1.934 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.621e-05/0.3564, allocations: 350.9 kB / 453 MB, free: 1.625 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004083/0.3568, allocations: 234.7 kB / 453.3 MB, free: 1.621 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006142/0.3574, allocations: 0.8025 MB / 454.1 MB, free: 0.875 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001099/0.3585, allocations: 1.114 MB / 455.2 MB, free: 120 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/0.3585, allocations: 4.938 kB / 455.2 MB, free: 120 kB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002127/0.3607, allocations: 1.182 MB / 456.4 MB, free: 15.74 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5e-05/0.3607, allocations: 42.89 kB / 456.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.535e-05/0.3608, allocations: 18.94 kB / 456.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002529/0.361, allocations: 70.12 kB / 456.5 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007915/0.3618, allocations: 266.5 kB / 456.7 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002299/0.3641, allocations: 2.785 MB / 459.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001142/0.3653, allocations: 74.14 kB / 459.6 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.471e-05/0.3654, allocations: 60.44 kB / 459.7 MB, free: 12.82 MB / 366.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.0006932/0.3661, allocations: 355.9 kB / 460 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002507/0.3664, allocations: 137.9 kB / 460.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001127/0.3675, allocations: 0.5579 MB / 460.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.3675, allocations: 5.438 kB / 460.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3675, allocations: 0 / 460.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.986e-06/0.3675, allocations: 4.703 kB / 460.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002906/0.3704, allocations: 1.866 MB / 462.6 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/0.3705, allocations: 8.125 kB / 462.6 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004335/0.3709, allocations: 101.8 kB / 462.7 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000161/0.3711, allocations: 58.28 kB / 462.7 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.536e-05/0.3711, allocations: 16 kB / 462.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002128/0.3733, allocations: 2.738 MB / 465.5 MB, free: 8.328 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.3733, allocations: 4.781 kB / 465.5 MB, free: 8.328 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001651/0.3749, allocations: 0.9241 MB / 466.4 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005142/0.3755, allocations: 271.5 kB / 466.7 MB, free: 7.457 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001602/0.3756, allocations: 12.22 kB / 466.7 MB, free: 7.453 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000539/0.3762, allocations: 36.25 kB / 466.7 MB, free: 7.434 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.3763, allocations: 49.58 kB / 466.8 MB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.305e-05/0.3763, allocations: 22.95 kB / 466.8 MB, free: 7.402 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001226/0.3776, allocations: 0.8449 MB / 467.7 MB, free: 6.934 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3776, allocations: 4 kB / 467.7 MB, free: 6.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001171/0.3788, allocations: 306.5 kB / 468 MB, free: 6.902 MB / 366.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.0002352/0.379, allocations: 146.6 kB / 468.1 MB, free: 6.789 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001569/0.3806, allocations: 0.9256 MB / 469 MB, free: 6.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.3806, allocations: 1 kB / 469 MB, free: 6.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006842/0.3813, allocations: 464.5 kB / 469.5 MB, free: 5.949 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001609/0.3829, allocations: 338.4 kB / 469.8 MB, free: 5.789 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004478/0.3874, allocations: 2.598 MB / 472.4 MB, free: 4.125 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008097/0.3883, allocations: 1.181 MB / 473.6 MB, free: 3.207 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002484/0.3885, allocations: 91.25 kB / 473.7 MB, free: 3.199 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3885, allocations: 3.938 kB / 473.7 MB, free: 3.195 MB / 366.1 MB Notification: Performance of Templates: time 0.04138/0.4299, allocations: 31.69 MB / 0.4935 GB, free: 5.027 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.842088962905109]