Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.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.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CompareTransformers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CompareTransformers,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CompareTransformers",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.00161/0.00161, allocations: 183.1 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.093/2.093, allocations: 205.4 MB / 222.5 MB, free: 9.098 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.001156/0.001156, allocations: 94.86 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004314/0.0004316, allocations: 11.98 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3348/0.3353, allocations: 47.57 MB / 374.6 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.004548/0.3399, allocations: 3.229 MB / 377.9 MB, free: 42.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002298/0.3423, allocations: 0.9328 MB / 378.8 MB, free: 42.1 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004773/0.3428, allocations: 7.375 kB / 378.8 MB, free: 42.1 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001562/0.343, allocations: 67.31 kB / 378.9 MB, free: 42.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006645/0.3436, allocations: 206.2 kB / 379.1 MB, free: 41.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004521/0.3441, allocations: 100.9 kB / 379.2 MB, free: 41.78 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001026/0.3452, allocations: 464.9 kB / 379.6 MB, free: 41.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003728/0.3456, allocations: 150 kB / 379.8 MB, free: 41.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004804/0.3461, allocations: 227.3 kB / 380 MB, free: 41.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003851/0.3465, allocations: 251.6 kB / 380.2 MB, free: 41.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.909e-05/0.3466, allocations: 30.28 kB / 380.3 MB, free: 41.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001284/0.3467, allocations: 31.06 kB / 380.3 MB, free: 41.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.819e-05/0.3468, allocations: 98.7 kB / 380.4 MB, free: 41.03 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001437/0.347, allocations: 131.9 kB / 380.5 MB, free: 40.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005775/0.3476, allocations: 473 kB / 381 MB, free: 40.6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.3476, allocations: 0 / 381 MB, free: 40.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3476, allocations: 0 / 381 MB, free: 40.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.3476, allocations: 0 / 381 MB, free: 40.6 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002011/0.3496, allocations: 0.7827 MB / 381.8 MB, free: 39.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.832e-05/0.3497, allocations: 9.688 kB / 381.8 MB, free: 39.96 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002218/0.3499, allocations: 105.5 kB / 381.9 MB, free: 39.87 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001657/0.3501, allocations: 65.78 kB / 381.9 MB, free: 39.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006478/0.3508, allocations: 359.4 kB / 382.3 MB, free: 39.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.763e-05/0.3508, allocations: 46.3 kB / 382.3 MB, free: 39.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/0.351, allocations: 50.25 kB / 382.4 MB, free: 39.47 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00126/0.3522, allocations: 0.4904 MB / 382.9 MB, free: 39.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.446e-05/0.3523, allocations: 3.984 kB / 382.9 MB, free: 39.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001098/0.3524, allocations: 21.53 kB / 382.9 MB, free: 39.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.825e-05/0.3524, allocations: 12.34 kB / 382.9 MB, free: 39.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001062/0.3535, allocations: 347.8 kB / 383.2 MB, free: 38.98 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004258/0.3578, allocations: 1.751 MB / 385 MB, free: 37.58 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007087/0.3586, allocations: 258 kB / 385.3 MB, free: 37.44 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.769e-05/0.3586, allocations: 11.97 kB / 385.3 MB, free: 37.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.936e-05/0.3587, allocations: 41.36 kB / 385.3 MB, free: 37.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 3.346e-06/0.3587, allocations: 0 / 385.3 MB, free: 37.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.002944/0.3616, allocations: 0.9778 MB / 386.3 MB, free: 36.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.678e-05/0.3617, allocations: 84.8 kB / 386.4 MB, free: 36.56 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000617/0.3623, allocations: 377.6 kB / 386.7 MB, free: 36.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.122e-05/0.3624, allocations: 32.2 kB / 386.8 MB, free: 36.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001763/0.3626, allocations: 347.7 kB / 387.1 MB, free: 35.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.197e-05/0.3627, allocations: 106.4 kB / 387.2 MB, free: 35.85 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.562e-05/0.3628, allocations: 12 kB / 387.2 MB, free: 35.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.261e-05/0.3628, allocations: 338.8 kB / 387.6 MB, free: 35.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003406/0.3632, allocations: 104.8 kB / 387.7 MB, free: 35.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003859/0.3636, allocations: 198.7 kB / 387.8 MB, free: 35.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003844/0.364, allocations: 135 kB / 388 MB, free: 35.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.364, allocations: 0 / 388 MB, free: 35.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001216/0.3652, allocations: 425.3 kB / 388.4 MB, free: 34.61 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.3653, allocations: 8 kB / 388.4 MB, free: 34.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.3653, allocations: 0 / 388.4 MB, free: 34.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005062/0.3658, allocations: 89.75 kB / 388.5 MB, free: 34.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005867/0.3664, allocations: 79.89 kB / 388.6 MB, free: 34.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002659/0.3691, allocations: 2.869 MB / 391.4 MB, free: 31.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000589/0.3698, allocations: 27.88 kB / 391.5 MB, free: 31.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.633e-05/0.3698, allocations: 20.06 kB / 391.5 MB, free: 31.25 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (45): * Single equations (assignments): 43 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000286/0.3701, allocations: 165.7 kB / 391.6 MB, free: 31.08 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.3702, allocations: 39.53 kB / 391.7 MB, free: 31.04 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.655e-05/0.3703, allocations: 43.45 kB / 391.7 MB, free: 31 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.371e-06/0.3703, allocations: 4 kB / 391.7 MB, free: 31 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.181e-05/0.3704, allocations: 4 kB / 391.7 MB, free: 30.99 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.3704, allocations: 3.984 kB / 391.7 MB, free: 30.99 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001983/0.3724, allocations: 0.9517 MB / 392.7 MB, free: 29.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.3724, allocations: 4 kB / 392.7 MB, free: 29.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003604/0.3728, allocations: 47.91 kB / 392.7 MB, free: 29.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004383/0.3732, allocations: 82.02 kB / 392.8 MB, free: 29.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.099e-05/0.3733, allocations: 12 kB / 392.8 MB, free: 29.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002561/0.3759, allocations: 2.877 MB / 395.7 MB, free: 26.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3759, allocations: 0 / 395.7 MB, free: 26.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001427/0.3774, allocations: 0.6457 MB / 396.4 MB, free: 26.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001907/0.3776, allocations: 112.7 kB / 396.5 MB, free: 25.89 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.793e-05/0.3777, allocations: 8.375 kB / 396.5 MB, free: 25.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000588/0.3783, allocations: 35.98 kB / 396.5 MB, free: 25.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.3784, allocations: 31.91 kB / 396.5 MB, free: 25.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.165e-05/0.3785, allocations: 12 kB / 396.6 MB, free: 25.8 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003717/0.3788, allocations: 275.1 kB / 396.8 MB, free: 25.54 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.3789, allocations: 0 / 396.8 MB, free: 25.54 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008501/0.3797, allocations: 120 kB / 396.9 MB, free: 25.42 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * 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 (26): * Single equations (assignments): 24 * 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%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001654/0.3814, allocations: 1.256 MB / 398.2 MB, free: 24.12 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001241/0.3827, allocations: 0.5154 MB / 398.7 MB, free: 23.58 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.3827, allocations: 0.625 kB / 398.7 MB, free: 23.58 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008338/0.3835, allocations: 393.2 kB / 399.1 MB, free: 23.17 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006895/0.3843, allocations: 57.47 kB / 399.1 MB, free: 23.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005991/0.3903, allocations: 4.363 MB / 403.5 MB, free: 18.64 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.3907, allocations: 0.8509 MB / 404.4 MB, free: 17.76 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003346/0.391, allocations: 179.4 kB / 404.5 MB, free: 17.59 MB / 298.7 MB Notification: Performance of SimCode: time 1.483e-06/0.391, allocations: 0 / 404.5 MB, free: 17.59 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.941/3.332, allocations: 10.83 MB / 415.4 MB, free: 6.758 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CompareTransformers_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CompareTransformers.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat does not exist to compare? outputFormat=mat