Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.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.001054/0.001054, allocations: 80.62 kB / 22.21 MB, free: 2.293 MB / 18.57 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.001126/0.001126, allocations: 147.9 kB / 25.59 MB, free: 8.574 MB / 18.57 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 0.8925/0.8925, allocations: 173.4 MB / 202.3 MB, free: 8.297 MB / 186.7 MB " [Timeout remaining time 179] 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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|smee.excitation.electroMagneticConverter.Phi.re|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.is.[0-9,]+.|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|smee.excitation.electroMagneticConverter.Phi.re|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.is.[0-9,]+.|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.136e-06/3.136e-06, allocations: 4 kB / 269.2 MB, free: 9.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.641e-05/2.955e-05, allocations: 2.312 kB / 269.2 MB, free: 9.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.01874/0.01877, allocations: 15.88 MB / 285.1 MB, free: 9.793 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01294/0.03171, allocations: 5.306 MB / 290.4 MB, free: 4.484 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003769/0.03548, allocations: 131.2 kB / 290.5 MB, free: 4.355 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004232/0.03971, allocations: 1.243 MB / 291.8 MB, free: 3.105 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005474/0.04518, allocations: 1.704 MB / 293.5 MB, free: 1.391 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002432/0.04761, allocations: 1.032 MB / 294.5 MB, free: 372 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00621/0.05382, allocations: 5.303 MB / 299.8 MB, free: 11.04 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00341/0.05723, allocations: 2.227 MB / 302 MB, free: 8.723 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0051/0.06233, allocations: 3.653 MB / 305.7 MB, free: 5.062 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004275/0.06661, allocations: 2.498 MB / 308.2 MB, free: 2.559 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001604/0.06821, allocations: 0.6016 MB / 308.8 MB, free: 1.957 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002265/0.07048, allocations: 0.8198 MB / 309.6 MB, free: 1.137 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001307/0.07178, allocations: 1.464 MB / 311.1 MB, free: 15.67 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002767/0.07455, allocations: 1.797 MB / 312.9 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004746/0.0793, allocations: 4.225 MB / 317.1 MB, free: 9.629 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.0793, allocations: 3.938 kB / 317.1 MB, free: 9.625 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.0793, allocations: 0 / 317.1 MB, free: 9.625 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001245/0.07943, allocations: 0 / 317.1 MB, free: 9.625 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.007773/0.0872, allocations: 5.466 MB / 322.6 MB, free: 4.086 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.08724, allocations: 8.031 kB / 322.6 MB, free: 4.078 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002852/0.09009, allocations: 1.38 MB / 324 MB, free: 2.695 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003836/0.09393, allocations: 2.678 MB / 326.6 MB, free: 15.96 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001858/0.09411, allocations: 300.4 kB / 326.9 MB, free: 15.67 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004447/0.09456, allocations: 400.3 kB / 327.3 MB, free: 15.28 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003896/0.09845, allocations: 2.936 MB / 330.3 MB, free: 12.21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.034e-05/0.09852, allocations: 0 / 330.3 MB, free: 12.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002657/0.09879, allocations: 171.9 kB / 330.4 MB, free: 12.04 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001409/0.09893, allocations: 168 kB / 330.6 MB, free: 11.87 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002142/0.1011, allocations: 1.191 MB / 331.8 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1519/0.253, allocations: 13.37 MB / 345.2 MB, free: 47.69 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003097/0.2561, allocations: 2.219 MB / 347.4 MB, free: 47.61 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0011/0.2572, allocations: 0.7837 MB / 348.2 MB, free: 47.59 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00451/0.2617, allocations: 2.918 MB / 351.1 MB, free: 47.15 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.2617, allocations: 53.61 kB / 351.1 MB, free: 47.11 MB / 314.7 MB Notification: Performance of pre-optimization done (n=157): time 3.166e-06/0.2617, allocations: 0 / 351.1 MB, free: 47.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=160): time 0.005109/0.2668, allocations: 2.901 MB / 354 MB, free: 46.71 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.493e-05/0.2668, allocations: 66.56 kB / 354.1 MB, free: 46.64 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001605/0.2684, allocations: 1.783 MB / 355.9 MB, free: 46.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.317e-05/0.2685, allocations: 51.42 kB / 355.9 MB, free: 46.29 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008473/0.2694, allocations: 2.027 MB / 358 MB, free: 45.54 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000312/0.2697, allocations: 0.5928 MB / 358.5 MB, free: 45.24 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003872/0.2701, allocations: 425.8 kB / 359 MB, free: 45.19 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.234e-05/0.2701, allocations: 484.6 kB / 359.4 MB, free: 44.72 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003176/0.2704, allocations: 230.2 kB / 359.7 MB, free: 44.71 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005612/0.271, allocations: 1.288 MB / 360.9 MB, free: 43.43 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/0.2721, allocations: 1.692 MB / 362.6 MB, free: 42.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.939e-06/0.2721, allocations: 7.719 kB / 362.6 MB, free: 42.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.001772/0.2738, allocations: 1.659 MB / 364.3 MB, free: 41.93 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.2739, allocations: 15.19 kB / 364.3 MB, free: 41.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.98e-05/0.2739, allocations: 26.03 kB / 364.3 MB, free: 41.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001617/0.274, allocations: 89.41 kB / 364.4 MB, free: 41.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/0.275, allocations: 0.5102 MB / 364.9 MB, free: 41.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007936/0.2758, allocations: 2.164 MB / 367.1 MB, free: 39.97 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000855/0.2767, allocations: 83.88 kB / 367.2 MB, free: 39.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.661e-05/0.2768, allocations: 80.42 kB / 367.3 MB, free: 39.96 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (269): * Single equations (assignments): 267 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007088/0.2775, allocations: 305.1 kB / 367.6 MB, free: 39.8 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002655/0.2778, allocations: 286.7 kB / 367.8 MB, free: 39.67 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001408/0.2792, allocations: 1.24 MB / 369.1 MB, free: 39.52 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.2792, allocations: 13.91 kB / 369.1 MB, free: 39.52 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.2792, allocations: 9.5 kB / 369.1 MB, free: 39.52 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.2792, allocations: 7.875 kB / 369.1 MB, free: 39.52 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004114/0.2833, allocations: 3.185 MB / 372.3 MB, free: 39.03 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.2833, allocations: 3.125 kB / 372.3 MB, free: 39.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006339/0.2839, allocations: 268.1 kB / 372.6 MB, free: 39.03 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004891/0.2844, allocations: 262.4 kB / 372.8 MB, free: 38.98 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.251e-05/0.2845, allocations: 36.73 kB / 372.9 MB, free: 38.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002941/0.2875, allocations: 7.036 MB / 379.9 MB, free: 32.62 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.2875, allocations: 3.938 kB / 379.9 MB, free: 32.62 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002143/0.2896, allocations: 1.7 MB / 381.6 MB, free: 31.08 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006402/0.2902, allocations: 365.2 kB / 382 MB, free: 30.77 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000182/0.2904, allocations: 35.38 kB / 382 MB, free: 30.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005066/0.2909, allocations: 63.12 kB / 382.1 MB, free: 30.68 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001803/0.2911, allocations: 120.5 kB / 382.2 MB, free: 30.62 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.287e-05/0.2912, allocations: 35.56 kB / 382.2 MB, free: 30.59 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007863/0.292, allocations: 0.9309 MB / 383.1 MB, free: 29.9 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.292, allocations: 0 / 383.1 MB, free: 29.9 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001707/0.2937, allocations: 0.6601 MB / 383.8 MB, free: 29.25 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (132): * Single equations (assignments): 129 * 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): 3 systems {(1,5,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002535/0.2939, allocations: 178 kB / 384 MB, free: 29.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001281/0.2952, allocations: 1.192 MB / 385.2 MB, free: 28.1 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2952, allocations: 0 / 385.2 MB, free: 28.1 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007424/0.2959, allocations: 1.109 MB / 386.3 MB, free: 26.98 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001228/0.2972, allocations: 0.5053 MB / 386.8 MB, free: 26.48 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007304/0.3045, allocations: 6.046 MB / 392.8 MB, free: 20.41 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006671/0.3051, allocations: 0.9335 MB / 393.8 MB, free: 19.46 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001025/0.3062, allocations: 311 kB / 394.1 MB, free: 19.15 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008278/0.307, allocations: 0.5877 MB / 394.6 MB, free: 18.56 MB / 314.7 MB Notification: Performance of SimCode: time 1.463e-06/0.307, allocations: 0 / 394.6 MB, free: 18.56 MB / 314.7 MB Notification: Performance of Templates: time 0.04457/0.3516, allocations: 31.59 MB / 426.2 MB, free: 3.508 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.005505491048098]