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.0007963/0.0007963, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007624/0.0007624, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8861/0.8861, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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 1.472e-06/1.472e-06, allocations: 0 / 324.6 MB, free: 15.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.072e-05/2.219e-05, allocations: 2.281 kB / 324.6 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.008161/0.008183, allocations: 8.637 MB / 333.2 MB, free: 7.184 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005636/0.01382, allocations: 3.564 MB / 336.8 MB, free: 3.609 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001217/0.01504, allocations: 59.62 kB / 336.8 MB, free: 3.551 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001624/0.01666, allocations: 0.6713 MB / 337.5 MB, free: 2.875 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002082/0.01874, allocations: 0.9549 MB / 338.4 MB, free: 1.914 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009674/0.01971, allocations: 482.8 kB / 338.9 MB, free: 1.441 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002531/0.02224, allocations: 2.757 MB / 341.7 MB, free: 14.67 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001254/0.0235, allocations: 1.077 MB / 342.7 MB, free: 13.54 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00294/0.02644, allocations: 1.762 MB / 344.5 MB, free: 11.77 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001862/0.0283, allocations: 1.313 MB / 345.8 MB, free: 10.46 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007117/0.02901, allocations: 304 kB / 346.1 MB, free: 10.16 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001074/0.03008, allocations: 0.5579 MB / 346.7 MB, free: 9.602 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008224/0.03091, allocations: 1.067 MB / 347.7 MB, free: 8.531 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001335/0.03224, allocations: 0.9975 MB / 348.7 MB, free: 7.531 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003573/0.03581, allocations: 4.339 MB / 353.1 MB, free: 3.18 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.03582, allocations: 3.938 kB / 353.1 MB, free: 3.176 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.03582, allocations: 4 kB / 353.1 MB, free: 3.172 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001226/0.03594, allocations: 0 / 353.1 MB, free: 3.172 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.004691/0.04063, allocations: 3.158 MB / 356.2 MB, free: 15.96 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.04068, allocations: 11.98 kB / 356.3 MB, free: 15.95 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003879/0.04107, allocations: 359.3 kB / 356.6 MB, free: 15.58 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000698/0.04177, allocations: 378.9 kB / 357 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00199/0.04376, allocations: 1.669 MB / 358.6 MB, free: 13.5 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.942e-05/0.04384, allocations: 152.5 kB / 358.8 MB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002196/0.04406, allocations: 212.3 kB / 359 MB, free: 13.14 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003319/0.04738, allocations: 2.832 MB / 361.8 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.195e-05/0.04743, allocations: 11.89 kB / 361.8 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001375/0.04756, allocations: 84 kB / 361.9 MB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-05/0.04765, allocations: 100 kB / 362 MB, free: 10.01 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002828/0.05048, allocations: 2.288 MB / 364.3 MB, free: 7.703 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009128/0.05961, allocations: 7.438 MB / 371.7 MB, free: 52 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001869/0.06148, allocations: 1.317 MB / 373.1 MB, free: 14.73 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001205/0.06268, allocations: 1.015 MB / 374.1 MB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001652/0.06285, allocations: 54 kB / 374.1 MB, free: 13.66 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.507e-05/0.06288, allocations: 43.56 kB / 374.2 MB, free: 13.61 MB / 346.7 MB Notification: Performance of pre-optimization done (n=116): time 3.477e-06/0.06288, allocations: 4 kB / 374.2 MB, free: 13.6 MB / 346.7 MB Notification: Performance of matching and sorting (n=132): time 0.008268/0.07115, allocations: 6.113 MB / 380.3 MB, free: 7.445 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/0.0712, allocations: 64.72 kB / 380.4 MB, free: 7.371 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002152/0.07335, allocations: 2.193 MB / 382.5 MB, free: 5.133 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.36e-05/0.07343, allocations: 49.7 kB / 382.6 MB, free: 5.078 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006084/0.07404, allocations: 1.149 MB / 383.7 MB, free: 3.918 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002738/0.07432, allocations: 475.9 kB / 384.2 MB, free: 3.449 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002869/0.0746, allocations: 243.5 kB / 384.4 MB, free: 3.203 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.947e-05/0.0747, allocations: 357.9 kB / 384.8 MB, free: 2.848 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008784/0.07558, allocations: 0.7613 MB / 385.6 MB, free: 2.086 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001005/0.07659, allocations: 1.009 MB / 386.6 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002111/0.0787, allocations: 1.869 MB / 388.4 MB, free: 15.03 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.866e-06/0.0787, allocations: 0 / 388.4 MB, free: 15.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003746/0.08245, allocations: 2.746 MB / 391.2 MB, free: 12.26 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.386e-05/0.08247, allocations: 8.25 kB / 391.2 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.08249, allocations: 11.94 kB / 391.2 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001244/0.08373, allocations: 0.7811 MB / 392 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000606/0.08434, allocations: 267.6 kB / 392.2 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008416/0.09275, allocations: 9.283 MB / 401.5 MB, free: 1.684 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001365/0.09412, allocations: 95.84 kB / 401.6 MB, free: 1.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/0.09423, allocations: 51.98 kB / 401.7 MB, free: 1.539 MB / 362.7 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.001271/0.0955, allocations: 0.7511 MB / 402.4 MB, free: 0.7773 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003195/0.09582, allocations: 210.6 kB / 402.6 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00308/0.0989, allocations: 2.477 MB / 405.1 MB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.217e-05/0.09893, allocations: 19.94 kB / 405.1 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.09893, allocations: 4 kB / 405.1 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.09894, allocations: 7.969 kB / 405.1 MB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006515/0.1055, allocations: 4.653 MB / 409.8 MB, free: 9.301 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.1055, allocations: 0 / 409.8 MB, free: 9.301 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005514/0.106, allocations: 215.9 kB / 410 MB, free: 9.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001075/0.1071, allocations: 0.6528 MB / 410.7 MB, free: 8.426 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.915e-05/0.1072, allocations: 39.97 kB / 410.7 MB, free: 8.387 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006531/0.1137, allocations: 8.335 MB / 419 MB, free: 15.72 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.1137, allocations: 4.031 kB / 419 MB, free: 15.72 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004481/0.1182, allocations: 3.533 MB / 422.6 MB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007785/0.119, allocations: 374.5 kB / 422.9 MB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001684/0.1191, allocations: 24 kB / 423 MB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005233/0.1197, allocations: 91.95 kB / 423 MB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002331/0.1199, allocations: 116.7 kB / 423.2 MB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.345e-05/0.12, allocations: 39.92 kB / 423.2 MB, free: 11.5 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001589/0.1215, allocations: 1.54 MB / 424.7 MB, free: 9.938 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1215, allocations: 0 / 424.7 MB, free: 9.938 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001446/0.123, allocations: 0.5274 MB / 425.3 MB, free: 9.41 MB / 394.7 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.005342/0.1283, allocations: 4.454 MB / 429.7 MB, free: 5.027 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003049/0.1314, allocations: 2.302 MB / 432 MB, free: 2.695 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.1314, allocations: 0 / 432 MB, free: 2.695 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001645/0.133, allocations: 1.46 MB / 433.5 MB, free: 1.195 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001555/0.1346, allocations: 452.6 kB / 433.9 MB, free: 0.7617 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1672/0.3018, allocations: 21.16 MB / 455.1 MB, free: 112.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008625/0.3027, allocations: 1.398 MB / 456.5 MB, free: 112.8 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007287/0.3034, allocations: 383.3 kB / 456.9 MB, free: 112.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007263/0.3041, allocations: 0.9863 MB / 457.8 MB, free: 112.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.673e-06/0.3041, allocations: 0 / 457.8 MB, free: 112.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06888/0.373, allocations: 54.89 MB / 0.5007 GB, free: 61.89 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.86/9.233, allocations: 15.95 kB / 0.5007 GB, free: 61.88 MB / 410.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins/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 657] Reference file matches [Calling sys.exit(0), Time elapsed: 16.179553515277803]