Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008511/0.0008511, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003834/0.003834, allocations: 163.1 kB / 24.69 MB, free: 9.414 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8843/0.8843, allocations: 158.6 MB / 186.5 MB, free: 3.02 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 298.5 MB, free: 3.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.18e-05/1.317e-05, allocations: 2.281 kB / 298.5 MB, free: 3.5 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL): time 0.1355/0.1355, allocations: 14.45 MB / 312.9 MB, free: 7.535 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.007728/0.1433, allocations: 5.186 MB / 318.1 MB, free: 3.883 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001756/0.145, allocations: 114.2 kB / 318.2 MB, free: 3.836 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002328/0.1473, allocations: 1.24 MB / 319.4 MB, free: 3.211 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003038/0.1504, allocations: 1.636 MB / 321.1 MB, free: 2.121 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001553/0.1519, allocations: 1.069 MB / 322.1 MB, free: 1.453 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00429/0.1562, allocations: 5.297 MB / 327.4 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002114/0.1583, allocations: 2.13 MB / 329.6 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003035/0.1614, allocations: 3.308 MB / 332.9 MB, free: 10.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001893/0.1633, allocations: 2.192 MB / 335.1 MB, free: 9.652 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000577/0.1638, allocations: 0.6134 MB / 335.7 MB, free: 9.508 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001042/0.1649, allocations: 0.8238 MB / 336.5 MB, free: 8.684 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007804/0.1657, allocations: 1.457 MB / 338 MB, free: 7.223 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00123/0.1669, allocations: 1.789 MB / 339.8 MB, free: 5.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005307/0.1722, allocations: 8.164 MB / 347.9 MB, free: 13.23 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1722, allocations: 0 / 347.9 MB, free: 13.23 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1722, allocations: 0 / 347.9 MB, free: 13.23 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.14e-05/0.1723, allocations: 0 / 347.9 MB, free: 13.23 MB / 314.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.006855/0.1791, allocations: 5.371 MB / 353.3 MB, free: 7.797 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.1792, allocations: 15.98 kB / 353.3 MB, free: 7.781 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006563/0.1798, allocations: 0.6066 MB / 353.9 MB, free: 7.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002529/0.1824, allocations: 1.009 MB / 354.9 MB, free: 6.148 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003159/0.1855, allocations: 2.749 MB / 357.7 MB, free: 3.355 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003973/0.1859, allocations: 300.5 kB / 358 MB, free: 3.059 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003654/0.1863, allocations: 388.4 kB / 358.3 MB, free: 2.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00563/0.1919, allocations: 5.379 MB / 363.7 MB, free: 13.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.782e-05/0.192, allocations: 3.953 kB / 363.7 MB, free: 13.17 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002629/0.1922, allocations: 164.6 kB / 363.9 MB, free: 13.01 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001127/0.1923, allocations: 176 kB / 364.1 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005225/0.1976, allocations: 4.431 MB / 368.5 MB, free: 8.387 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01504/0.2126, allocations: 14.93 MB / 383.4 MB, free: 9.016 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003363/0.216, allocations: 3.166 MB / 386.6 MB, free: 6.055 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001979/0.2179, allocations: 1.557 MB / 388.1 MB, free: 4.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004753/0.2227, allocations: 3.899 MB / 392 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.685e-05/0.2227, allocations: 51.86 kB / 392.1 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of pre-optimization done (n=156): time 3.186e-06/0.2227, allocations: 8 kB / 392.1 MB, free: 0.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=159): time 0.007451/0.2302, allocations: 5.693 MB / 397.8 MB, free: 10.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/0.2302, allocations: 68.72 kB / 397.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002338/0.2326, allocations: 2.325 MB / 400.2 MB, free: 8.332 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.3e-05/0.2326, allocations: 53.7 kB / 400.2 MB, free: 8.273 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008565/0.2335, allocations: 1.897 MB / 402.1 MB, free: 6.355 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003193/0.2338, allocations: 0.5655 MB / 402.7 MB, free: 5.785 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000426/0.2342, allocations: 387.9 kB / 403.1 MB, free: 5.398 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.1e-05/0.2343, allocations: 309.1 kB / 403.4 MB, free: 5.094 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001028/0.2353, allocations: 0.8436 MB / 404.2 MB, free: 4.246 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0013/0.2366, allocations: 1.585 MB / 405.8 MB, free: 2.328 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00236/0.239, allocations: 2.555 MB / 408.4 MB, free: 15.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.642e-05/0.239, allocations: 8 kB / 408.4 MB, free: 15.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.003165/0.2422, allocations: 2.81 MB / 411.2 MB, free: 12.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/0.2422, allocations: 16.62 kB / 411.2 MB, free: 12.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.552e-05/0.2422, allocations: 27.94 kB / 411.2 MB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002209/0.2425, allocations: 121.7 kB / 411.3 MB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001071/0.2435, allocations: 0.5426 MB / 411.9 MB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001188/0.2447, allocations: 1.882 MB / 413.8 MB, free: 9.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008405/0.2456, allocations: 119.8 kB / 413.9 MB, free: 9.793 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/0.2457, allocations: 95.98 kB / 414 MB, free: 9.699 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 104 * 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.001378/0.247, allocations: 1.196 MB / 415.2 MB, free: 8.492 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002189/0.2473, allocations: 254.4 kB / 415.4 MB, free: 8.242 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002565/0.2498, allocations: 2.274 MB / 417.7 MB, free: 5.945 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.2498, allocations: 12 kB / 417.7 MB, free: 5.934 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.2498, allocations: 11.98 kB / 417.7 MB, free: 5.922 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.2499, allocations: 3.984 kB / 417.7 MB, free: 5.918 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006778/0.2566, allocations: 5.258 MB / 423 MB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.2566, allocations: 4.219 kB / 423 MB, free: 0.5664 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007125/0.2574, allocations: 283.6 kB / 423.3 MB, free: 296 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005266/0.2579, allocations: 312.9 kB / 423.6 MB, free: 15.98 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-05/0.258, allocations: 39.98 kB / 423.6 MB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004421/0.2624, allocations: 6.573 MB / 430.2 MB, free: 9.023 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.2624, allocations: 3.984 kB / 430.2 MB, free: 9.02 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003658/0.266, allocations: 3.395 MB / 433.6 MB, free: 5.574 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007509/0.2668, allocations: 442.1 kB / 434 MB, free: 5.141 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002044/0.267, allocations: 43.92 kB / 434.1 MB, free: 5.098 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006031/0.2676, allocations: 79.94 kB / 434.1 MB, free: 5.02 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002028/0.2678, allocations: 125.1 kB / 434.3 MB, free: 4.895 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.233e-05/0.2679, allocations: 44 kB / 434.3 MB, free: 4.852 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001658/0.2695, allocations: 1.552 MB / 435.8 MB, free: 3.285 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2695, allocations: 0 / 435.8 MB, free: 3.285 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001527/0.271, allocations: 0.664 MB / 436.5 MB, free: 2.621 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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.004054/0.2751, allocations: 4.005 MB / 440.5 MB, free: 14.55 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00263/0.2777, allocations: 2.104 MB / 442.6 MB, free: 12.44 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.2777, allocations: 3.938 kB / 442.6 MB, free: 12.44 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001449/0.2792, allocations: 1.39 MB / 444 MB, free: 11.01 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00192/0.2811, allocations: 0.5987 MB / 444.6 MB, free: 10.41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03365/0.3147, allocations: 24.01 MB / 468.6 MB, free: 1.48 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1341/0.4489, allocations: 2.123 MB / 470.7 MB, free: 138.5 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001703/0.4506, allocations: 0.5602 MB / 471.3 MB, free: 138.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001366/0.452, allocations: 1.466 MB / 472.8 MB, free: 138.2 MB / 426.7 MB Notification: Performance of SimCode: time 1.633e-06/0.452, allocations: 0 / 472.8 MB, free: 138.2 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07707/0.529, allocations: 62.51 MB / 0.5227 GB, free: 92.57 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.645/10.17, allocations: 15.84 kB / 0.5228 GB, free: 92.55 MB / 426.7 MB " [Timeout remaining time 650] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 16.026082256808877]