Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008542/0.0008542, allocations: 171.6 kB / 16.72 MB, free: 4.934 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.143/1.143, allocations: 205.4 MB / 222.9 MB, free: 8.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007161/0.0007161, allocations: 98.27 kB / 271.2 MB, free: 8.215 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002657/0.0002657, allocations: 12 kB / 327.6 MB, free: 15.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1731, allocations: 47.57 MB / 375.2 MB, free: 45.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.008998/0.1821, allocations: 11.8 MB / 387 MB, free: 36.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006174/0.1883, allocations: 4.409 MB / 391.4 MB, free: 32.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001074/0.1894, allocations: 71.62 kB / 391.5 MB, free: 32.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001631/0.1911, allocations: 0.8393 MB / 392.3 MB, free: 31.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002198/0.1933, allocations: 1.131 MB / 393.4 MB, free: 30.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00139/0.1947, allocations: 0.6997 MB / 394.1 MB, free: 29.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003008/0.1977, allocations: 4.078 MB / 398.2 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002135/0.1998, allocations: 2.644 MB / 400.9 MB, free: 22.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001221/0.2011, allocations: 1.315 MB / 402.2 MB, free: 21.56 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001257/0.2023, allocations: 1.677 MB / 403.9 MB, free: 19.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002731/0.2026, allocations: 208 kB / 404.1 MB, free: 19.67 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008391/0.2035, allocations: 447.7 kB / 404.5 MB, free: 19.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004506/0.2039, allocations: 0.7668 MB / 405.3 MB, free: 18.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001133/0.2051, allocations: 1.709 MB / 407 MB, free: 16.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002981/0.2081, allocations: 5.551 MB / 412.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2081, allocations: 0 / 412.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.2081, allocations: 0 / 412.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.926e-05/0.2081, allocations: 0 / 412.5 MB, free: 11.18 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: 843 * Number of variables: 843 Notification: Performance of Generate backend data structure: time 0.007178/0.2153, allocations: 3.793 MB / 416.3 MB, free: 7.309 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.2154, allocations: 8.031 kB / 416.3 MB, free: 7.301 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005412/0.2159, allocations: 463.7 kB / 416.8 MB, free: 6.836 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003522/0.2194, allocations: 0.8202 MB / 417.6 MB, free: 6.012 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002941/0.2224, allocations: 2.256 MB / 419.9 MB, free: 3.699 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001132/0.2225, allocations: 242.4 kB / 420.1 MB, free: 3.461 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003837/0.2229, allocations: 319.9 kB / 420.4 MB, free: 3.148 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005958/0.2289, allocations: 4.257 MB / 424.7 MB, free: 14.84 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.618e-05/0.229, allocations: 11.98 kB / 424.7 MB, free: 14.83 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002751/0.2292, allocations: 128 kB / 424.8 MB, free: 14.71 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001256/0.2294, allocations: 154.4 kB / 424.9 MB, free: 14.55 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00549/0.2349, allocations: 3.601 MB / 428.5 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01747/0.2524, allocations: 13.49 MB / 442 MB, free: 13.12 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00598/0.2584, allocations: 6.956 MB / 449 MB, free: 5.266 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002027/0.2604, allocations: 1.402 MB / 450.4 MB, free: 3.863 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005622/0.2661, allocations: 3.84 MB / 454.2 MB, free: 15.93 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001192/0.2673, allocations: 0.8454 MB / 455.1 MB, free: 15.05 MB / 346.7 MB Notification: Performance of pre-optimization done (n=131): time 2.665e-06/0.2673, allocations: 0 / 455.1 MB, free: 15.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=139): time 0.01084/0.2781, allocations: 6.501 MB / 461.6 MB, free: 8.336 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.61e-05/0.2782, allocations: 226.9 kB / 461.8 MB, free: 8.066 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002253/0.2805, allocations: 1.899 MB / 463.7 MB, free: 6.168 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.688e-05/0.2806, allocations: 49.7 kB / 463.7 MB, free: 6.113 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001025/0.2816, allocations: 1.474 MB / 465.2 MB, free: 4.625 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003156/0.2819, allocations: 489 kB / 465.7 MB, free: 4.141 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.783e-05/0.282, allocations: 32 kB / 465.7 MB, free: 4.109 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.2822, allocations: 373.9 kB / 466.1 MB, free: 3.738 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009751/0.2831, allocations: 0.6559 MB / 466.8 MB, free: 3.086 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001286/0.2844, allocations: 1.21 MB / 468 MB, free: 1.645 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002361/0.2868, allocations: 1.932 MB / 469.9 MB, free: 15.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.2868, allocations: 8 kB / 469.9 MB, free: 15.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.003472/0.2903, allocations: 2.416 MB / 472.3 MB, free: 13.04 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.2903, allocations: 12 kB / 472.3 MB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.686e-05/0.2904, allocations: 16 kB / 472.3 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006731/0.291, allocations: 287.5 kB / 472.6 MB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.2924, allocations: 379.4 kB / 473 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004908/0.2973, allocations: 5.858 MB / 478.9 MB, free: 6.098 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001206/0.2985, allocations: 99.94 kB / 479 MB, free: 6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001154/0.2986, allocations: 79.98 kB / 479 MB, free: 5.922 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.dutyCycle.nextTimeEvent,dutyCycle.nextTimeEvent,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 192 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001502/0.3001, allocations: 1.036 MB / 480.1 MB, free: 4.875 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002422/0.3004, allocations: 205.4 kB / 480.3 MB, free: 4.672 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003503/0.3039, allocations: 2.234 MB / 482.5 MB, free: 2.367 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/0.3039, allocations: 16.19 kB / 482.5 MB, free: 2.352 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.3039, allocations: 12 kB / 482.5 MB, free: 2.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.304, allocations: 7.969 kB / 482.5 MB, free: 2.332 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006824/0.3108, allocations: 5.098 MB / 487.6 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.3108, allocations: 4.125 kB / 487.6 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000737/0.3115, allocations: 179.8 kB / 487.8 MB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00109/0.3126, allocations: 462.6 kB / 488.3 MB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.657e-05/0.3127, allocations: 39.98 kB / 488.3 MB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008736/0.3215, allocations: 10.18 MB / 498.5 MB, free: 1.582 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.3215, allocations: 11.95 kB / 498.5 MB, free: 1.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004432/0.3259, allocations: 3.126 MB / 0.4899 GB, free: 14.36 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006998/0.3267, allocations: 434.5 kB / 0.4903 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002184/0.3269, allocations: 36 kB / 0.4903 GB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000788/0.3277, allocations: 68.08 kB / 0.4904 GB, free: 13.81 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002529/0.3279, allocations: 101.2 kB / 0.4905 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-05/0.328, allocations: 43.98 kB / 0.4905 GB, free: 13.67 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001694/0.3297, allocations: 1.299 MB / 0.4918 GB, free: 12.38 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3297, allocations: 4 kB / 0.4918 GB, free: 12.38 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001687/0.3314, allocations: 0.586 MB / 0.4924 GB, free: 11.79 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,mass.s,mass.v) * Number of discrete variables: 3 ($whenCondition1,dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of discrete states: 2 (dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 3,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005309/0.3368, allocations: 4.044 MB / 0.4963 GB, free: 7.672 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002995/0.3398, allocations: 2.162 MB / 0.4984 GB, free: 5.449 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.3398, allocations: 0 / 0.4984 GB, free: 5.449 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002072/0.3419, allocations: 1.576 MB / 0.5 GB, free: 3.812 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002313/0.3442, allocations: 0.5206 MB / 0.5005 GB, free: 3.293 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.154/0.4982, allocations: 16.75 MB / 0.5168 GB, free: 116.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001471/0.4997, allocations: 2.297 MB / 0.5191 GB, free: 115 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001238/0.501, allocations: 1.177 MB / 0.5202 GB, free: 114.1 MB / 394.7 MB Notification: Performance of SimCode: time 1.222e-06/0.501, allocations: 0 / 0.5202 GB, free: 114.1 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.396/6.897, allocations: 125.1 MB / 0.6424 GB, free: 6.484 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor_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_Conveyor/AIMC_Conveyor.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches