Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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.008066/0.008066, allocations: 103.9 kB / 21.96 MB, free: 5.211 MB / 14.72 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.001595/0.001595, allocations: 209.5 kB / 25.25 MB, free: 3.145 MB / 14.72 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 1.289/1.289, allocations: 207.7 MB / 236.1 MB, free: 9.797 MB / 190.1 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.AIMC_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001676/0.001676, allocations: 55.92 kB / 348 MB, free: 9.871 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2345, allocations: 49.15 MB / 397.1 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01173/0.2463, allocations: 11.23 MB / 408.4 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009072/0.2553, allocations: 4.06 MB / 412.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002728/0.2581, allocations: 88.62 kB / 412.5 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00341/0.2615, allocations: 0.959 MB / 413.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00508/0.2665, allocations: 1.276 MB / 414.8 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00274/0.2693, allocations: 0.8622 MB / 415.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006163/0.2755, allocations: 4.058 MB / 419.7 MB, free: 9.965 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002769/0.2782, allocations: 1.743 MB / 421.4 MB, free: 8.797 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003343/0.2816, allocations: 1.938 MB / 423.4 MB, free: 7.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003921/0.2855, allocations: 2.137 MB / 425.5 MB, free: 6.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001027/0.2865, allocations: 0.5105 MB / 426 MB, free: 6.141 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002259/0.2888, allocations: 0.7029 MB / 426.7 MB, free: 5.438 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001272/0.29, allocations: 1.153 MB / 427.9 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002855/0.2929, allocations: 1.677 MB / 429.5 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00823/0.3011, allocations: 6.8 MB / 436.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.3011, allocations: 0 / 436.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.516e-06/0.3011, allocations: 0 / 436.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001745/0.3013, allocations: 0 / 436.3 MB, free: 11.78 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01228/0.3136, allocations: 4.412 MB / 440.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.624e-05/0.3136, allocations: 15.98 kB / 440.8 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001109/0.3138, allocations: 82.45 kB / 440.8 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008736/0.3146, allocations: 451 kB / 441.3 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004558/0.3192, allocations: 0.8261 MB / 442.1 MB, free: 5.926 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004975/0.3242, allocations: 2.283 MB / 444.4 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002357/0.3244, allocations: 234.4 kB / 444.6 MB, free: 3.363 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008611/0.3253, allocations: 312 kB / 444.9 MB, free: 3.059 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008933/0.3342, allocations: 4.412 MB / 449.3 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.741e-05/0.3343, allocations: 0 / 449.3 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004106/0.3347, allocations: 128 kB / 449.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001634/0.3348, allocations: 146.2 kB / 449.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00762/0.3425, allocations: 3.647 MB / 453.3 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02391/0.3664, allocations: 11.93 MB / 465.2 MB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00528/0.3717, allocations: 2.58 MB / 467.8 MB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002447/0.3741, allocations: 1.296 MB / 469.1 MB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006228/0.3803, allocations: 3.04 MB / 472.1 MB, free: 7.547 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.464e-05/0.3804, allocations: 47.5 kB / 472.1 MB, free: 7.488 MB / 382.1 MB Notification: Performance of pre-optimization done (n=124): time 3.898e-06/0.3804, allocations: 0 / 472.1 MB, free: 7.488 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01322/0.3936, allocations: 6.056 MB / 478.2 MB, free: 1.383 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.88e-05/0.3936, allocations: 68.72 kB / 478.3 MB, free: 1.305 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002772/0.3964, allocations: 1.855 MB / 480.1 MB, free: 15.45 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001651/0.3966, allocations: 49.7 kB / 480.2 MB, free: 15.39 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001128/0.3977, allocations: 1.455 MB / 481.6 MB, free: 13.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004909/0.3982, allocations: 0.5152 MB / 482.1 MB, free: 13.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004947/0.3987, allocations: 303.5 kB / 482.4 MB, free: 13.11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.3988, allocations: 305.1 kB / 482.7 MB, free: 12.8 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001243/0.4001, allocations: 0.7652 MB / 483.5 MB, free: 12.04 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001587/0.4016, allocations: 1.241 MB / 484.7 MB, free: 10.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002954/0.4046, allocations: 2.108 MB / 486.8 MB, free: 8.293 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-05/0.4046, allocations: 8 kB / 486.9 MB, free: 8.285 MB / 398.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004647/0.4093, allocations: 2.656 MB / 489.5 MB, free: 5.613 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.09e-05/0.4093, allocations: 8 kB / 489.5 MB, free: 5.605 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.51e-05/0.4093, allocations: 16 kB / 489.5 MB, free: 5.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001418/0.4107, allocations: 0.4939 MB / 490 MB, free: 5.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001543/0.4123, allocations: 399.3 kB / 490.4 MB, free: 4.699 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008984/0.4213, allocations: 6.608 MB / 497 MB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00147/0.4227, allocations: 84.06 kB / 497.1 MB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002308/0.423, allocations: 71.94 kB / 497.2 MB, free: 13.71 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (180): * Single equations (assignments): 178 * Array equations: 0 * Algorithm blocks: 0 * 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%), (7,31,61.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001948/0.4249, allocations: 1.048 MB / 498.2 MB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005528/0.4255, allocations: 202.7 kB / 498.4 MB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004667/0.4301, allocations: 2.333 MB / 0.489 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.7e-05/0.4301, allocations: 16 kB / 0.489 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.378e-05/0.4302, allocations: 8 kB / 0.489 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.53e-05/0.4302, allocations: 3.984 kB / 0.489 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009731/0.4399, allocations: 5.015 MB / 0.4939 GB, free: 4.953 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/0.4399, allocations: 0 / 0.4939 GB, free: 4.953 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/0.441, allocations: 227.9 kB / 0.4942 GB, free: 4.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001468/0.4425, allocations: 0.4959 MB / 0.4946 GB, free: 4.219 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001581/0.4426, allocations: 31.98 kB / 0.4947 GB, free: 4.188 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01187/0.4545, allocations: 10.79 MB / 0.5052 GB, free: 8.82 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.958e-06/0.4545, allocations: 7.938 kB / 0.5052 GB, free: 8.812 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006315/0.4608, allocations: 3.405 MB / 0.5085 GB, free: 5.355 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001219/0.462, allocations: 394.6 kB / 0.5089 GB, free: 4.969 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000552/0.4626, allocations: 28 kB / 0.509 GB, free: 4.941 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001244/0.4638, allocations: 75.88 kB / 0.509 GB, free: 4.867 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003734/0.4642, allocations: 117 kB / 0.5091 GB, free: 4.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001358/0.4643, allocations: 39.98 kB / 0.5092 GB, free: 4.711 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002582/0.4669, allocations: 1.289 MB / 0.5104 GB, free: 3.43 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4669, allocations: 0 / 0.5104 GB, free: 3.43 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002541/0.4695, allocations: 0.5859 MB / 0.511 GB, free: 2.844 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006743/0.4762, allocations: 4.014 MB / 0.5149 GB, free: 14.77 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004715/0.4809, allocations: 2.312 MB / 0.5172 GB, free: 12.43 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.4809, allocations: 0 / 0.5172 GB, free: 12.43 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002769/0.4837, allocations: 1.654 MB / 0.5188 GB, free: 10.71 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002878/0.4866, allocations: 0.5257 MB / 0.5193 GB, free: 10.19 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03906/0.5256, allocations: 21.34 MB / 0.5402 GB, free: 4.227 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003043/0.5287, allocations: 1.811 MB / 0.5419 GB, free: 2.375 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00154/0.5302, allocations: 416.8 kB / 0.5423 GB, free: 1.965 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001855/0.5321, allocations: 1.151 MB / 0.5434 GB, free: 0.8164 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/0.5321, allocations: 0 / 0.5434 GB, free: 0.8164 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2745/0.8066, allocations: 59 MB / 0.6011 GB, free: 123.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.99/15.8, allocations: 16.84 kB / 0.6011 GB, free: 123.3 MB / 478.1 MB " [Timeout remaining time 644] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Initialize/AIMC_Initialize.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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: 23.743045829935]