Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001408/0.001408, allocations: 191.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 226.5 MB / 244.7 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007826/0.0007826, allocations: 92.02 kB / 296.8 MB, free: 6.863 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002317/0.0002317, allocations: 8 kB / 356.8 MB, free: 10.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1911/0.1914, allocations: 51.29 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize): time 0.005702/0.1971, allocations: 7.888 MB / 415.9 MB, free: 19.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004843/0.202, allocations: 2.745 MB / 418.7 MB, free: 17.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007731/0.2028, allocations: 43.81 kB / 418.7 MB, free: 16.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001032/0.2038, allocations: 0.4893 MB / 419.2 MB, free: 16.49 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001196/0.205, allocations: 0.6294 MB / 419.8 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004373/0.2055, allocations: 203.7 kB / 420 MB, free: 15.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001553/0.207, allocations: 2.481 MB / 422.5 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001258/0.2083, allocations: 1.453 MB / 424 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008259/0.2091, allocations: 0.8132 MB / 424.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001019/0.2102, allocations: 1.117 MB / 425.9 MB, free: 9.727 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001925/0.2104, allocations: 120 kB / 426 MB, free: 9.609 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000447/0.2108, allocations: 227.8 kB / 426.2 MB, free: 9.387 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004285/0.2113, allocations: 0.6152 MB / 426.9 MB, free: 8.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007249/0.212, allocations: 1.036 MB / 427.9 MB, free: 7.723 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001633/0.2136, allocations: 2.972 MB / 430.9 MB, free: 4.742 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.2137, allocations: 0 / 430.9 MB, free: 4.742 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2137, allocations: 0 / 430.9 MB, free: 4.742 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.898e-05/0.2137, allocations: 0 / 430.9 MB, free: 4.742 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: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.003291/0.217, allocations: 2.205 MB / 433.1 MB, free: 2.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.2171, allocations: 8.031 kB / 433.1 MB, free: 2.473 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007668/0.2178, allocations: 298.1 kB / 433.4 MB, free: 2.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001711/0.2195, allocations: 1.346 MB / 434.7 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.848e-05/0.2196, allocations: 140 kB / 434.9 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002076/0.2198, allocations: 187.8 kB / 435 MB, free: 468 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003546/0.2234, allocations: 2.402 MB / 437.4 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.928e-05/0.2235, allocations: 7.938 kB / 437.4 MB, free: 14.01 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001642/0.2236, allocations: 75.98 kB / 437.5 MB, free: 13.94 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.095e-05/0.2237, allocations: 87.48 kB / 437.6 MB, free: 13.85 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003295/0.227, allocations: 2.02 MB / 439.6 MB, free: 11.83 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01067/0.2377, allocations: 7.499 MB / 447.1 MB, free: 4.117 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001752/0.2395, allocations: 1.277 MB / 448.4 MB, free: 2.773 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001518/0.241, allocations: 0.9198 MB / 449.3 MB, free: 1.855 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002287/0.2413, allocations: 122.1 kB / 449.4 MB, free: 1.719 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.2413, allocations: 51.44 kB / 449.5 MB, free: 1.656 MB / 314.7 MB Notification: Performance of pre-optimization done (n=84): time 3.136e-06/0.2413, allocations: 0 / 449.5 MB, free: 1.656 MB / 314.7 MB Notification: Performance of matching and sorting (n=100): time 0.008708/0.25, allocations: 4.913 MB / 454.4 MB, free: 12.65 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.269e-05/0.2501, allocations: 64.41 kB / 454.5 MB, free: 12.57 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001844/0.252, allocations: 1.372 MB / 455.8 MB, free: 11.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.252e-05/0.2521, allocations: 45.7 kB / 455.9 MB, free: 11.13 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005961/0.2527, allocations: 0.8969 MB / 456.8 MB, free: 10.22 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002499/0.2529, allocations: 350.9 kB / 457.1 MB, free: 9.871 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.797e-05/0.253, allocations: 24 kB / 457.2 MB, free: 9.848 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.2531, allocations: 349.9 kB / 457.5 MB, free: 9.5 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009413/0.2541, allocations: 0.6389 MB / 458.1 MB, free: 8.859 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/0.2552, allocations: 0.9298 MB / 459.1 MB, free: 7.805 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002174/0.2574, allocations: 1.645 MB / 460.7 MB, free: 6.043 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.2574, allocations: 4 kB / 460.7 MB, free: 6.039 MB / 330.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003967/0.2614, allocations: 2.402 MB / 463.1 MB, free: 3.621 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.2614, allocations: 8 kB / 463.1 MB, free: 3.613 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.2614, allocations: 11.94 kB / 463.1 MB, free: 3.602 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001748/0.2632, allocations: 0.7091 MB / 463.8 MB, free: 2.887 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000873/0.2641, allocations: 243.6 kB / 464.1 MB, free: 2.648 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009477/0.2736, allocations: 7.999 MB / 472.1 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001028/0.2746, allocations: 84.11 kB / 472.2 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.129e-05/0.2747, allocations: 51.98 kB / 472.2 MB, free: 10.25 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (114): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(6,77.8%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001008/0.2757, allocations: 0.6262 MB / 472.8 MB, free: 9.617 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002641/0.276, allocations: 146.2 kB / 473 MB, free: 9.473 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003149/0.2792, allocations: 1.909 MB / 474.9 MB, free: 7.531 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.2792, allocations: 8 kB / 474.9 MB, free: 7.523 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.2792, allocations: 7.938 kB / 474.9 MB, free: 7.516 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/0.2792, allocations: 3.984 kB / 474.9 MB, free: 7.512 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006324/0.2855, allocations: 4.025 MB / 478.9 MB, free: 3.391 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.201e-06/0.2856, allocations: 3.938 kB / 478.9 MB, free: 3.387 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007984/0.2864, allocations: 188 kB / 479.1 MB, free: 3.203 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001201/0.2876, allocations: 466.8 kB / 479.6 MB, free: 2.734 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.697e-05/0.2877, allocations: 27.98 kB / 479.6 MB, free: 2.707 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005688/0.2934, allocations: 6.132 MB / 485.7 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.2934, allocations: 4.031 kB / 485.7 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00423/0.2976, allocations: 2.794 MB / 488.5 MB, free: 9.316 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006796/0.2983, allocations: 367.1 kB / 488.9 MB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000184/0.2985, allocations: 31.98 kB / 488.9 MB, free: 8.906 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007187/0.2993, allocations: 71.92 kB / 489 MB, free: 8.836 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002134/0.2995, allocations: 80.88 kB / 489.1 MB, free: 8.758 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.516e-05/0.2996, allocations: 24 kB / 489.1 MB, free: 8.734 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001345/0.3009, allocations: 0.9543 MB / 490.1 MB, free: 7.777 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3009, allocations: 3.938 kB / 490.1 MB, free: 7.773 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001294/0.3022, allocations: 432.1 kB / 490.5 MB, free: 7.352 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (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) * 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 (84): * Single equations (assignments): 80 * 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 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003325/0.3026, allocations: 184.8 kB / 490.7 MB, free: 7.168 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003207/0.3058, allocations: 2.008 MB / 492.7 MB, free: 5.137 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3058, allocations: 0.625 kB / 492.7 MB, free: 5.137 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001966/0.3078, allocations: 1.359 MB / 494 MB, free: 3.715 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002001/0.3098, allocations: 359.8 kB / 494.4 MB, free: 3.371 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006196/0.316, allocations: 4.791 MB / 499.2 MB, free: 14.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001246/0.3173, allocations: 1.669 MB / 0.4891 GB, free: 12.82 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000402/0.3177, allocations: 103.4 kB / 0.4892 GB, free: 12.72 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.3177, allocations: 4 kB / 0.4892 GB, free: 12.71 MB / 378.7 MB Notification: Performance of Templates: time 0.2058/0.5235, allocations: 52.35 MB / 0.5403 GB, free: 59.46 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Initialize/IMC_Initialize.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches