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.001343/0.001343, allocations: 105.6 kB / 20.43 MB, free: 1.309 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.001446/0.001446, allocations: 184 kB / 23.72 MB, free: 4.562 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.405/1.405, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.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: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 51.92 kB / 370.5 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.238/0.2396, allocations: 52.19 MB / 422.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.01975/0.2593, allocations: 16.79 MB / 439.4 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01043/0.2697, allocations: 5.448 MB / 444.9 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002731/0.2725, allocations: 127.2 kB / 445 MB, free: 8.145 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003529/0.276, allocations: 1.286 MB / 446.3 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005409/0.2814, allocations: 1.678 MB / 448 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002928/0.2843, allocations: 1.066 MB / 449 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007106/0.2914, allocations: 5.118 MB / 454.2 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004317/0.2958, allocations: 2.317 MB / 456.5 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003158/0.2989, allocations: 2.239 MB / 458.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004271/0.3032, allocations: 2.635 MB / 461.4 MB, free: 7.676 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001118/0.3043, allocations: 0.6171 MB / 462 MB, free: 7.059 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002205/0.3065, allocations: 0.8435 MB / 462.8 MB, free: 6.215 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001546/0.3081, allocations: 1.43 MB / 464.2 MB, free: 4.781 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003598/0.3117, allocations: 2.633 MB / 466.9 MB, free: 2.137 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01001/0.3217, allocations: 8.121 MB / 475 MB, free: 9.988 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3217, allocations: 0 / 475 MB, free: 9.988 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3217, allocations: 0 / 475 MB, free: 9.988 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001772/0.3218, allocations: 0 / 475 MB, free: 9.988 MB / 382.1 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.01372/0.3356, allocations: 5.425 MB / 480.4 MB, free: 4.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.3356, allocations: 8.031 kB / 480.4 MB, free: 4.492 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001072/0.3367, allocations: 0.6066 MB / 481 MB, free: 3.871 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005149/0.3418, allocations: 1.017 MB / 482.1 MB, free: 2.852 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006853/0.3487, allocations: 2.902 MB / 485 MB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002639/0.349, allocations: 307.9 kB / 485.3 MB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000775/0.3497, allocations: 396 kB / 485.6 MB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009769/0.3595, allocations: 5.217 MB / 490.9 MB, free: 9.906 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.52e-05/0.3596, allocations: 3.953 kB / 490.9 MB, free: 9.902 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003646/0.3599, allocations: 172 kB / 491 MB, free: 9.734 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001819/0.3601, allocations: 172 kB / 491.2 MB, free: 9.562 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008483/0.3686, allocations: 4.455 MB / 495.7 MB, free: 5.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02755/0.3962, allocations: 16.34 MB / 0.5 GB, free: 4.285 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005659/0.4018, allocations: 3.198 MB / 0.5031 GB, free: 1.293 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002801/0.4046, allocations: 1.558 MB / 0.5046 GB, free: 15.74 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008912/0.4135, allocations: 4.319 MB / 0.5089 GB, free: 11.38 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.546e-05/0.4136, allocations: 51.81 kB / 0.5089 GB, free: 11.32 MB / 430.1 MB Notification: Performance of pre-optimization done (n=157): time 3.446e-06/0.4136, allocations: 4 kB / 0.5089 GB, free: 11.32 MB / 430.1 MB Notification: Performance of matching and sorting (n=160): time 0.01221/0.4258, allocations: 5.722 MB / 0.5145 GB, free: 5.559 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/0.4259, allocations: 68.72 kB / 0.5146 GB, free: 5.48 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003643/0.4295, allocations: 2.286 MB / 0.5168 GB, free: 3.168 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001193/0.4296, allocations: 57.7 kB / 0.5168 GB, free: 3.105 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001481/0.4311, allocations: 1.901 MB / 0.5187 GB, free: 1.184 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004959/0.4316, allocations: 0.5733 MB / 0.5193 GB, free: 0.6055 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005789/0.4322, allocations: 399.9 kB / 0.5196 GB, free: 212 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.4323, allocations: 301.1 kB / 0.5199 GB, free: 15.91 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001449/0.4338, allocations: 0.8475 MB / 0.5208 GB, free: 15.06 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002001/0.4358, allocations: 1.559 MB / 0.5223 GB, free: 13.17 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003649/0.4394, allocations: 2.554 MB / 0.5248 GB, free: 10.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-05/0.4394, allocations: 11.94 kB / 0.5248 GB, free: 10.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.004905/0.4443, allocations: 2.822 MB / 0.5275 GB, free: 7.449 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.063e-05/0.4444, allocations: 12 kB / 0.5276 GB, free: 7.438 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.41e-05/0.4444, allocations: 28.03 kB / 0.5276 GB, free: 7.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003239/0.4447, allocations: 121.7 kB / 0.5277 GB, free: 7.285 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002009/0.4467, allocations: 0.5382 MB / 0.5282 GB, free: 6.746 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001871/0.4486, allocations: 1.882 MB / 0.5301 GB, free: 4.754 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001727/0.4503, allocations: 112 kB / 0.5302 GB, free: 4.645 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001631/0.4505, allocations: 95.98 kB / 0.5303 GB, free: 4.551 MB / 446.1 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.002082/0.4526, allocations: 1.204 MB / 0.5314 GB, free: 3.336 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004274/0.453, allocations: 258.3 kB / 0.5317 GB, free: 3.082 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004267/0.4573, allocations: 2.286 MB / 0.5339 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.524e-05/0.4573, allocations: 16 kB / 0.5339 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.4573, allocations: 8 kB / 0.5339 GB, free: 0.75 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.941e-05/0.4573, allocations: 11.91 kB / 0.5339 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2006/0.6579, allocations: 5.601 MB / 0.5394 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.6579, allocations: 0 / 0.5394 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001152/0.6591, allocations: 288.3 kB / 0.5397 GB, free: 103.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006993/0.6598, allocations: 311.4 kB / 0.54 GB, free: 103 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.617e-05/0.6599, allocations: 39.67 kB / 0.54 GB, free: 103 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004673/0.6645, allocations: 6.645 MB / 0.5465 GB, free: 97.55 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.6645, allocations: 0 / 0.5465 GB, free: 97.55 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004613/0.6691, allocations: 3.407 MB / 0.5498 GB, free: 96.17 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001048/0.6702, allocations: 440.2 kB / 0.5503 GB, free: 96.04 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002953/0.6705, allocations: 35.44 kB / 0.5503 GB, free: 96.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.6715, allocations: 77.84 kB / 0.5504 GB, free: 96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002268/0.6717, allocations: 132 kB / 0.5505 GB, free: 95.97 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.93e-05/0.6718, allocations: 49.61 kB / 0.5505 GB, free: 95.96 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001975/0.6738, allocations: 1.549 MB / 0.5521 GB, free: 95.35 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6738, allocations: 0.8438 kB / 0.5521 GB, free: 95.35 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001971/0.6758, allocations: 0.6662 MB / 0.5527 GB, free: 95.3 MB / 446.1 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.004573/0.6803, allocations: 4.034 MB / 0.5566 GB, free: 93.36 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002986/0.6833, allocations: 2.109 MB / 0.5587 GB, free: 91.75 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.6833, allocations: 3.719 kB / 0.5587 GB, free: 91.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001675/0.685, allocations: 1.373 MB / 0.5601 GB, free: 90.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002342/0.6873, allocations: 0.5889 MB / 0.5606 GB, free: 90.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02825/0.7156, allocations: 24.06 MB / 0.5841 GB, free: 65.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001659/0.7172, allocations: 2.673 MB / 0.5867 GB, free: 62.56 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001462/0.7187, allocations: 0.5552 MB / 0.5873 GB, free: 62 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001339/0.72, allocations: 1.472 MB / 0.5887 GB, free: 60.53 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.72, allocations: 0 / 0.5887 GB, free: 60.53 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1025/0.8225, allocations: 61.57 MB / 0.6488 GB, free: 15.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.38/17.21, allocations: 11.86 kB / 0.6488 GB, free: 15.49 MB / 462.1 MB " [Timeout remaining time 643] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 656] Reference file matches [Calling sys.exit(0), Time elapsed: 26.778930294094607]