Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",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.001551/0.00155, allocations: 182.2 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.123/2.123, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001164/0.001164, allocations: 90.86 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004206/0.0004209, allocations: 11.98 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/0.357, allocations: 47.57 MB / 374.6 MB, free: 45.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005314/0.3624, allocations: 3.172 MB / 377.8 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003361/0.3658, allocations: 1.302 MB / 379.1 MB, free: 41.87 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005156/0.3664, allocations: 7.219 kB / 379.1 MB, free: 41.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000885/0.3673, allocations: 201 kB / 379.3 MB, free: 41.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001029/0.3684, allocations: 278.3 kB / 379.6 MB, free: 41.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000933/0.3693, allocations: 213.1 kB / 379.8 MB, free: 41.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001114/0.3704, allocations: 478.7 kB / 380.3 MB, free: 41.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003409/0.3708, allocations: 137.6 kB / 380.4 MB, free: 41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004802/0.3713, allocations: 233.4 kB / 380.6 MB, free: 40.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000436/0.3718, allocations: 251.5 kB / 380.9 MB, free: 40.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.53e-05/0.3719, allocations: 24.84 kB / 380.9 MB, free: 40.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003039/0.3722, allocations: 58.08 kB / 380.9 MB, free: 40.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001641/0.3723, allocations: 117.2 kB / 381.1 MB, free: 40.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001612/0.3725, allocations: 128.8 kB / 381.2 MB, free: 40.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007019/0.3732, allocations: 0.4991 MB / 381.7 MB, free: 40.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.3733, allocations: 4 kB / 381.7 MB, free: 40.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3733, allocations: 0 / 381.7 MB, free: 40.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.877e-06/0.3733, allocations: 0 / 381.7 MB, free: 40.18 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002311/0.3756, allocations: 0.8576 MB / 382.5 MB, free: 39.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/0.3757, allocations: 8.688 kB / 382.6 MB, free: 39.46 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001496/0.3758, allocations: 75.44 kB / 382.6 MB, free: 39.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001732/0.376, allocations: 68.56 kB / 382.7 MB, free: 39.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008787/0.3769, allocations: 402.5 kB / 383.1 MB, free: 38.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.281e-05/0.377, allocations: 29 kB / 383.1 MB, free: 38.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.336e-05/0.3771, allocations: 38.97 kB / 383.2 MB, free: 38.97 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001188/0.3783, allocations: 437.6 kB / 383.6 MB, free: 38.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.449e-05/0.3783, allocations: 1.188 kB / 383.6 MB, free: 38.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.263e-05/0.3784, allocations: 19.56 kB / 383.6 MB, free: 38.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.847e-05/0.3784, allocations: 9.656 kB / 383.6 MB, free: 38.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001/0.3794, allocations: 313.8 kB / 383.9 MB, free: 38.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003732/0.3832, allocations: 1.722 MB / 385.6 MB, free: 37.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.3844, allocations: 363.6 kB / 386 MB, free: 36.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.049e-05/0.3845, allocations: 8.219 kB / 386 MB, free: 36.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007103/0.3852, allocations: 264.8 kB / 386.3 MB, free: 36.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 3.606e-06/0.3852, allocations: 0 / 386.3 MB, free: 36.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.003594/0.3888, allocations: 1.014 MB / 387.3 MB, free: 35.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.011e-05/0.389, allocations: 195.9 kB / 387.5 MB, free: 35.56 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008019/0.3898, allocations: 0.4901 MB / 388 MB, free: 35.05 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.359e-05/0.3899, allocations: 33.7 kB / 388 MB, free: 35.01 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000182/0.3901, allocations: 286.9 kB / 388.3 MB, free: 34.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.3902, allocations: 126.3 kB / 388.4 MB, free: 34.61 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.809e-05/0.3902, allocations: 4 kB / 388.4 MB, free: 34.6 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.804e-05/0.3903, allocations: 334.8 kB / 388.7 MB, free: 34.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003993/0.3907, allocations: 120.8 kB / 388.8 MB, free: 34.15 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004763/0.3912, allocations: 209.3 kB / 389 MB, free: 33.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004289/0.3917, allocations: 129.8 kB / 389.2 MB, free: 33.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.3917, allocations: 0 / 389.2 MB, free: 33.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.00121/0.3929, allocations: 449.2 kB / 389.6 MB, free: 33.33 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.3929, allocations: 7.938 kB / 389.6 MB, free: 33.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.393, allocations: 0 / 389.6 MB, free: 33.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007963/0.3938, allocations: 163.3 kB / 389.8 MB, free: 33.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003787/0.3942, allocations: 47.94 kB / 389.8 MB, free: 33.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005618/0.3998, allocations: 6.001 MB / 395.8 MB, free: 26.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007769/0.4006, allocations: 63.75 kB / 395.9 MB, free: 26.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.185e-05/0.4007, allocations: 8 kB / 395.9 MB, free: 26.5 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.IdealThyristor1.off,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003702/0.4011, allocations: 188 kB / 396.1 MB, free: 26.31 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.589e-05/0.4012, allocations: 51.44 kB / 396.1 MB, free: 26.26 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001303/0.4013, allocations: 60.75 kB / 396.2 MB, free: 26.2 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.4013, allocations: 4 kB / 396.2 MB, free: 26.2 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.4014, allocations: 7.953 kB / 396.2 MB, free: 26.19 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.4014, allocations: 7.984 kB / 396.2 MB, free: 26.18 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006819/0.4021, allocations: 489 kB / 396.7 MB, free: 25.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.4021, allocations: 0 / 396.7 MB, free: 25.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002351/0.4023, allocations: 27.98 kB / 396.7 MB, free: 25.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006915/0.403, allocations: 159.3 kB / 396.9 MB, free: 25.46 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.696e-05/0.4031, allocations: 8 kB / 396.9 MB, free: 25.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005361/0.4085, allocations: 5.848 MB / 402.7 MB, free: 19.06 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.4085, allocations: 0 / 402.7 MB, free: 19.06 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.4101, allocations: 0.5077 MB / 403.2 MB, free: 18.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002841/0.4104, allocations: 160.3 kB / 403.4 MB, free: 18.35 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.4105, allocations: 8 kB / 403.4 MB, free: 18.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004944/0.411, allocations: 39.97 kB / 403.4 MB, free: 18.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002243/0.4113, allocations: 59.86 kB / 403.5 MB, free: 18.24 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.205e-05/0.4113, allocations: 8 kB / 403.5 MB, free: 18.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005646/0.4119, allocations: 359.1 kB / 403.9 MB, free: 17.89 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4119, allocations: 0 / 403.9 MB, free: 17.89 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001112/0.413, allocations: 167.8 kB / 404 MB, free: 17.72 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.002929/0.416, allocations: 1.383 MB / 405.4 MB, free: 16.33 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001654/0.4177, allocations: 0.7991 MB / 406.2 MB, free: 15.48 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.4177, allocations: 0 / 406.2 MB, free: 15.48 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009356/0.4187, allocations: 0.655 MB / 406.9 MB, free: 14.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008813/0.4196, allocations: 100.3 kB / 407 MB, free: 14.68 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006653/0.4262, allocations: 3.328 MB / 410.3 MB, free: 11.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003696/0.4267, allocations: 0.8709 MB / 411.2 MB, free: 10.37 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003239/0.427, allocations: 167.4 kB / 411.3 MB, free: 10.21 MB / 298.7 MB Notification: Performance of SimCode: time 1.222e-06/0.427, allocations: 0 / 411.3 MB, free: 10.21 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.172/3.599, allocations: 16.23 MB / 427.5 MB, free: 9.945 MB / 314.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristors_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat does not exist to compare? outputFormat=mat