Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001354/0.001354, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001506/0.001506, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 63.89 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2572, allocations: 50.53 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.04122/0.2985, allocations: 33.5 MB / 442.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02119/0.3197, allocations: 9.238 MB / 451.5 MB, free: 6.621 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007666/0.3275, allocations: 243.2 kB / 451.8 MB, free: 6.383 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02023/0.3478, allocations: 7.965 MB / 459.7 MB, free: 14.4 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01421/0.362, allocations: 3.666 MB / 463.4 MB, free: 10.72 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007771/0.3698, allocations: 2.14 MB / 465.5 MB, free: 8.582 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01977/0.3896, allocations: 13.14 MB / 478.7 MB, free: 11.41 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03827/0.4279, allocations: 22.48 MB / 0.4894 GB, free: 4.758 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01174/0.4397, allocations: 6.557 MB / 0.4958 GB, free: 14.18 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01382/0.4535, allocations: 7.382 MB / 0.503 GB, free: 6.777 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006142/0.4597, allocations: 1.883 MB / 0.5049 GB, free: 4.895 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007593/0.4674, allocations: 2.265 MB / 0.5071 GB, free: 2.629 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006581/0.474, allocations: 3.745 MB / 0.5107 GB, free: 14.88 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01553/0.4895, allocations: 7.117 MB / 0.5177 GB, free: 7.73 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.507/0.9966, allocations: 25.1 MB / 0.5422 GB, free: 53.01 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.9967, allocations: 0.5625 kB / 0.5422 GB, free: 53.01 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.9967, allocations: 0 / 0.5422 GB, free: 53.01 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007391/0.9974, allocations: 0.6562 kB / 0.5422 GB, free: 53.01 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2952 * Number of variables: 2952 Notification: Performance of Generate backend data structure: time 0.04562/1.043, allocations: 14.89 MB / 0.5567 GB, free: 48.86 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/1.043, allocations: 9.5 kB / 0.5567 GB, free: 48.86 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005307/1.048, allocations: 1.51 MB / 0.5582 GB, free: 48.75 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0389/1.087, allocations: 6.902 MB / 0.565 GB, free: 48.06 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01831/1.106, allocations: 8.146 MB / 0.5729 GB, free: 46.91 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000796/1.107, allocations: 0.792 MB / 0.5737 GB, free: 46.89 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004701/1.111, allocations: 1.052 MB / 0.5747 GB, free: 46.87 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04243/1.154, allocations: 17.21 MB / 0.5915 GB, free: 32.63 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004568/1.154, allocations: 17.83 kB / 0.5915 GB, free: 32.61 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003354/1.158, allocations: 437.9 kB / 0.592 GB, free: 32.2 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005106/1.158, allocations: 0.6353 MB / 0.5926 GB, free: 31.56 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0295/1.188, allocations: 16.31 MB / 0.6085 GB, free: 15.23 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1058/1.294, allocations: 56.44 MB / 0.6636 GB, free: 6.246 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0329/1.326, allocations: 31.39 MB / 0.6943 GB, free: 3.125 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007443/1.334, allocations: 4.335 MB / 0.6985 GB, free: 14.8 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02073/1.355, allocations: 10.72 MB / 0.709 GB, free: 4.102 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.841e-05/1.355, allocations: 81.47 kB / 0.7091 GB, free: 4.016 MB / 0.545 GB Notification: Performance of pre-optimization done (n=398): time 5.57e-06/1.355, allocations: 0 / 0.7091 GB, free: 4.016 MB / 0.545 GB Notification: Performance of matching and sorting (n=423): time 0.05323/1.408, allocations: 21.8 MB / 0.7303 GB, free: 13.95 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001297/1.408, allocations: 120.7 kB / 0.7305 GB, free: 13.81 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009022/1.417, allocations: 4.711 MB / 0.7351 GB, free: 9.09 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0008454/1.418, allocations: 101.6 kB / 0.7352 GB, free: 8.984 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.004332/1.423, allocations: 4.823 MB / 0.7399 GB, free: 4.148 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002316/1.425, allocations: 1.525 MB / 0.7414 GB, free: 2.645 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002361/1.427, allocations: 1.137 MB / 0.7425 GB, free: 1.496 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001375/1.427, allocations: 301.1 kB / 0.7428 GB, free: 1.199 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005192/1.433, allocations: 2.905 MB / 0.7456 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007565/1.44, allocations: 4.953 MB / 0.7504 GB, free: 8.445 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2446/1.685, allocations: 8.338 MB / 0.7586 GB, free: 229.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.165e-05/1.685, allocations: 21.31 kB / 0.7586 GB, free: 229.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=764) (initialization): time 0.01784/1.703, allocations: 9.76 MB / 0.7681 GB, free: 227.3 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.696e-05/1.703, allocations: 34.75 kB / 0.7682 GB, free: 227.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001012/1.703, allocations: 70.78 kB / 0.7682 GB, free: 227.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004078/1.707, allocations: 1.647 MB / 0.7698 GB, free: 227 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004806/1.712, allocations: 1.319 MB / 0.7711 GB, free: 226.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01932/1.731, allocations: 17.77 MB / 0.7885 GB, free: 215.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004802/1.736, allocations: 333.8 kB / 0.7888 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008788/1.737, allocations: 290.2 kB / 0.7891 GB, free: 215.4 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 296 * 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 (671): * Single equations (assignments): 667 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (7,28,61.2%), (1,1,100.0%), (14,44,39.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006011/1.743, allocations: 3.886 MB / 0.7929 GB, free: 213.4 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00114/1.744, allocations: 0.5161 MB / 0.7934 GB, free: 213.4 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01153/1.756, allocations: 7.788 MB / 0.801 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-05/1.756, allocations: 42.59 kB / 0.801 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.924e-05/1.756, allocations: 16.91 kB / 0.801 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.894e-05/1.756, allocations: 23.11 kB / 0.801 GB, free: 210.1 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02579/1.782, allocations: 17.46 MB / 0.8181 GB, free: 196.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.67e-05/1.782, allocations: 8 kB / 0.8181 GB, free: 196.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003052/1.785, allocations: 0.7302 MB / 0.8188 GB, free: 196.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003836/1.789, allocations: 1.549 MB / 0.8203 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005022/1.789, allocations: 112 kB / 0.8204 GB, free: 194.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01935/1.809, allocations: 21.23 MB / 0.8412 GB, free: 172.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/1.809, allocations: 11.94 kB / 0.8412 GB, free: 172.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01515/1.824, allocations: 11.48 MB / 0.8524 GB, free: 161 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002954/1.827, allocations: 1.176 MB / 0.8535 GB, free: 159.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001014/1.828, allocations: 91.94 kB / 0.8536 GB, free: 159.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002799/1.831, allocations: 237.1 kB / 0.8538 GB, free: 159.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007788/1.831, allocations: 323.4 kB / 0.8542 GB, free: 159.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002699/1.832, allocations: 135.9 kB / 0.8543 GB, free: 159 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004356/1.836, allocations: 3.186 MB / 0.8574 GB, free: 155.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2e-07/1.836, allocations: 0.75 kB / 0.8574 GB, free: 155.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00747/1.843, allocations: 1.871 MB / 0.8592 GB, free: 154 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.stray.Phi.re,imc.stator.stray.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 (364): * Single equations (assignments): 357 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,1,100.0%), (14,44,41.3%), (2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,5,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.01547/1.859, allocations: 12.21 MB / 0.8712 GB, free: 141.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01164/1.871, allocations: 8.16 MB / 0.8791 GB, free: 133.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.028e-05/1.871, allocations: 6.562 kB / 0.8791 GB, free: 133.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00669/1.877, allocations: 4.651 MB / 0.8837 GB, free: 128.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006501/1.884, allocations: 1.309 MB / 0.8849 GB, free: 127.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09158/1.976, allocations: 64.22 MB / 0.9477 GB, free: 60.38 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008848/1.984, allocations: 6.778 MB / 0.9543 GB, free: 53.56 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005221/1.99, allocations: 1.865 MB / 0.9561 GB, free: 51.69 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00685/1.997, allocations: 3.924 MB / 0.9599 GB, free: 47.76 MB / 0.5919 GB Notification: Performance of SimCode: time 9.52e-07/1.997, allocations: 0 / 0.9599 GB, free: 47.76 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.465/2.462, allocations: 151.8 MB / 1.108 GB, free: 143.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.62/26.08, allocations: 15.06 kB / 1.108 GB, free: 143.2 MB / 0.5919 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-05 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Initialize/IMC_Initialize.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches