Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00131/0.00131, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001461/0.001461, allocations: 214.9 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 230.5 MB / 257.4 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00208/0.00208, allocations: 55.91 kB / 377.8 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2425, allocations: 53.41 MB / 431.2 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.0122/0.2547, allocations: 9.813 MB / 441 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007524/0.2622, allocations: 3.797 MB / 444.8 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001578/0.2638, allocations: 63.62 kB / 444.9 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002265/0.2661, allocations: 0.6988 MB / 445.6 MB, free: 8.254 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003175/0.2692, allocations: 0.9285 MB / 446.5 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001321/0.2706, allocations: 486.6 kB / 447 MB, free: 6.848 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003686/0.2742, allocations: 2.67 MB / 449.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001767/0.276, allocations: 1.116 MB / 450.8 MB, free: 2.988 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002048/0.2781, allocations: 1.234 MB / 452 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002399/0.2805, allocations: 1.553 MB / 453.6 MB, free: 196 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005668/0.281, allocations: 304 kB / 453.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001316/0.2823, allocations: 0.6243 MB / 454.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001113/0.2834, allocations: 1.044 MB / 455.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00167/0.2851, allocations: 1.485 MB / 457 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005271/0.2904, allocations: 4.316 MB / 461.3 MB, free: 8.398 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.2904, allocations: 0 / 461.3 MB, free: 8.398 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.2904, allocations: 0 / 461.3 MB, free: 8.398 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001272/0.2905, allocations: 0 / 461.3 MB, free: 8.398 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.007276/0.2978, allocations: 3.193 MB / 464.5 MB, free: 5.152 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.2978, allocations: 19.97 kB / 464.5 MB, free: 5.133 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005529/0.2984, allocations: 351.4 kB / 464.9 MB, free: 4.773 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001109/0.2995, allocations: 378.8 kB / 465.3 MB, free: 4.402 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00332/0.3028, allocations: 1.658 MB / 466.9 MB, free: 2.707 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001455/0.303, allocations: 164.2 kB / 467.1 MB, free: 2.543 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003697/0.3033, allocations: 211.9 kB / 467.3 MB, free: 2.336 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004854/0.3082, allocations: 2.727 MB / 470 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.212e-05/0.3083, allocations: 11.94 kB / 470 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001955/0.3085, allocations: 87.98 kB / 470.1 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000131/0.3086, allocations: 100 kB / 470.2 MB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004502/0.3131, allocations: 2.296 MB / 472.5 MB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01557/0.3287, allocations: 8.078 MB / 480.6 MB, free: 4.719 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003089/0.3318, allocations: 1.321 MB / 481.9 MB, free: 3.391 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002117/0.3339, allocations: 1.026 MB / 482.9 MB, free: 2.367 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002461/0.3341, allocations: 48.95 kB / 483 MB, free: 2.32 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.164e-05/0.3342, allocations: 47.5 kB / 483 MB, free: 2.262 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 4.127e-06/0.3342, allocations: 0 / 483 MB, free: 2.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.0143/0.3485, allocations: 6.126 MB / 489.2 MB, free: 12.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.496e-05/0.3485, allocations: 68.72 kB / 489.2 MB, free: 12.02 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003356/0.3519, allocations: 2.177 MB / 491.4 MB, free: 9.793 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002689/0.3521, allocations: 45.7 kB / 491.4 MB, free: 9.742 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001028/0.3532, allocations: 1.149 MB / 492.6 MB, free: 8.582 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005732/0.3537, allocations: 487.8 kB / 493.1 MB, free: 8.102 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004311/0.3542, allocations: 243.6 kB / 493.3 MB, free: 7.859 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.3544, allocations: 357.9 kB / 493.7 MB, free: 7.504 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001419/0.3558, allocations: 0.7574 MB / 494.4 MB, free: 6.746 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001641/0.3574, allocations: 1.017 MB / 495.4 MB, free: 5.641 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003153/0.3606, allocations: 1.861 MB / 497.3 MB, free: 3.688 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.083e-05/0.3606, allocations: 4 kB / 497.3 MB, free: 3.684 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00567/0.3662, allocations: 2.746 MB / 0.4883 GB, free: 0.918 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.837e-05/0.3663, allocations: 11.94 kB / 0.4883 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.285e-05/0.3663, allocations: 11.98 kB / 0.4883 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002126/0.3684, allocations: 0.7774 MB / 0.4891 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/0.3697, allocations: 275.5 kB / 0.4894 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01319/0.3829, allocations: 9.383 MB / 0.4985 GB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00161/0.3845, allocations: 95.89 kB / 0.4986 GB, free: 6.133 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002312/0.3847, allocations: 51.98 kB / 0.4987 GB, free: 6.082 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (126): * Single equations (assignments): 122 * Array equations: 2 * 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,6,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001527/0.3862, allocations: 0.7511 MB / 0.4994 GB, free: 5.32 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005272/0.3868, allocations: 214.6 kB / 0.4996 GB, free: 5.109 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004864/0.3916, allocations: 2.485 MB / 0.502 GB, free: 2.602 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.369e-05/0.3917, allocations: 12 kB / 0.502 GB, free: 2.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.78e-05/0.3917, allocations: 8 kB / 0.5021 GB, free: 2.582 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.073e-05/0.3917, allocations: 7.969 kB / 0.5021 GB, free: 2.574 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01028/0.402, allocations: 4.918 MB / 0.5069 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.207e-05/0.402, allocations: 4 kB / 0.5069 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.4031, allocations: 211.7 kB / 0.5071 GB, free: 13.36 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001935/0.405, allocations: 0.6584 MB / 0.5077 GB, free: 12.7 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001642/0.4052, allocations: 35.97 kB / 0.5077 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01022/0.4154, allocations: 8.406 MB / 0.516 GB, free: 3.918 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.4154, allocations: 0 / 0.516 GB, free: 3.918 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006696/0.4221, allocations: 3.537 MB / 0.5194 GB, free: 340 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001323/0.4234, allocations: 378.4 kB / 0.5198 GB, free: 15.96 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003796/0.4238, allocations: 28 kB / 0.5198 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/0.4249, allocations: 91.83 kB / 0.5199 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003112/0.4252, allocations: 108.8 kB / 0.52 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001035/0.4253, allocations: 35.98 kB / 0.52 GB, free: 15.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002325/0.4276, allocations: 1.536 MB / 0.5215 GB, free: 14.14 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4276, allocations: 0 / 0.5215 GB, free: 14.14 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001953/0.4295, allocations: 0.5273 MB / 0.522 GB, free: 13.61 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * 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 (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(2,12,100.0%), (1,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007984/0.4375, allocations: 4.452 MB / 0.5264 GB, free: 9.227 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004539/0.4421, allocations: 2.302 MB / 0.5286 GB, free: 6.898 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.4421, allocations: 0 / 0.5286 GB, free: 6.898 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002682/0.4448, allocations: 1.472 MB / 0.5301 GB, free: 5.383 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0024/0.4472, allocations: 454.8 kB / 0.5305 GB, free: 4.945 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2373/0.6845, allocations: 21.17 MB / 0.5512 GB, free: 96.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001278/0.6857, allocations: 1.966 MB / 0.5531 GB, free: 94.67 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001112/0.6869, allocations: 392.5 kB / 0.5535 GB, free: 94.36 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001002/0.6879, allocations: 0.9874 MB / 0.5544 GB, free: 93.37 MB / 446.1 MB Notification: Performance of SimCode: time 2.044e-06/0.6879, allocations: 0.9375 kB / 0.5544 GB, free: 93.37 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09246/0.7803, allocations: 52.85 MB / 0.606 GB, free: 41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 25.17/25.95, allocations: 7.938 kB / 0.606 GB, free: 41 MB / 446.1 MB " [Timeout remaining time 634] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.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: 36.10146240494214]