Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 174.6 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 221.3 MB / 235.5 MB, free: 2.961 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 85.94 kB / 286.5 MB, free: 252 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.428e-05/2.43e-05, allocations: 4 kB / 343.9 MB, free: 4.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08759/0.08763, allocations: 50.42 MB / 394.3 MB, free: 1.781 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2899/0.3775, allocations: 78.68 MB / 473 MB, free: 8.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001801/0.3777, allocations: 67.97 kB / 473.1 MB, free: 8.773 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01634/0.3941, allocations: 6.561 MB / 479.6 MB, free: 2.164 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3941, allocations: 0 / 479.6 MB, free: 2.164 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.064e-05/0.3942, allocations: 12 kB / 479.7 MB, free: 2.152 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0008374/0.395, allocations: 0.6121 MB / 480.3 MB, free: 1.496 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.3951, allocations: 8.031 kB / 480.3 MB, free: 1.488 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.055e-05/0.3951, allocations: 70.53 kB / 480.3 MB, free: 1.41 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.769e-05/0.3952, allocations: 47.44 kB / 480.4 MB, free: 1.363 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003427/0.3956, allocations: 298.5 kB / 480.7 MB, free: 1.031 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.3956, allocations: 24.78 kB / 480.7 MB, free: 1.008 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.12e-05/0.3957, allocations: 36 kB / 480.7 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005286/0.3962, allocations: 340.6 kB / 481.1 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.3962, allocations: 0 / 481.1 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.421e-05/0.3963, allocations: 12 kB / 481.1 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.3963, allocations: 8 kB / 481.1 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003982/0.3967, allocations: 239 kB / 481.3 MB, free: 376 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002038/0.3987, allocations: 1.435 MB / 482.8 MB, free: 14.83 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003389/0.3991, allocations: 198.5 kB / 483 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001479/0.3992, allocations: 93.66 kB / 483 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.997e-05/0.3993, allocations: 8 kB / 483.1 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.3993, allocations: 34.56 kB / 483.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.964e-06/0.3993, allocations: 0 / 483.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.00052/0.3999, allocations: 271.1 kB / 483.4 MB, free: 14.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.3999, allocations: 55.41 kB / 483.4 MB, free: 14.14 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002904/0.4002, allocations: 274.6 kB / 483.7 MB, free: 13.87 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.548e-05/0.4002, allocations: 29.7 kB / 483.7 MB, free: 13.83 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.4004, allocations: 208.2 kB / 483.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.724e-05/0.4005, allocations: 74.84 kB / 484 MB, free: 13.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.347e-05/0.4005, allocations: 8 kB / 484 MB, free: 13.54 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.4006, allocations: 342.8 kB / 484.3 MB, free: 13.2 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.4007, allocations: 68 kB / 484.4 MB, free: 13.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.4009, allocations: 100.3 kB / 484.5 MB, free: 13.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001321/0.401, allocations: 75.86 kB / 484.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.401, allocations: 0 / 484.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000631/0.4017, allocations: 331.5 kB / 484.9 MB, free: 12.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.4017, allocations: 4.938 kB / 484.9 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.4017, allocations: 4.062 kB / 484.9 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003914/0.4021, allocations: 114.5 kB / 485 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001813/0.4023, allocations: 35.91 kB / 485 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003226/0.4056, allocations: 4.434 MB / 489.5 MB, free: 7.598 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002236/0.4058, allocations: 35.7 kB / 489.5 MB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.084e-05/0.4058, allocations: 11.94 kB / 489.5 MB, free: 7.551 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 8.987e-05/0.4059, allocations: 120.9 kB / 489.6 MB, free: 7.426 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.189e-05/0.406, allocations: 35.62 kB / 489.7 MB, free: 7.391 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.811e-05/0.4061, allocations: 38.95 kB / 489.7 MB, free: 7.348 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.4061, allocations: 4 kB / 489.7 MB, free: 7.344 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.4061, allocations: 3.984 kB / 489.7 MB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.4061, allocations: 96 / 489.7 MB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003902/0.4065, allocations: 373.3 kB / 490.1 MB, free: 6.926 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.4065, allocations: 4 kB / 490.1 MB, free: 6.922 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000114/0.4066, allocations: 27.91 kB / 490.1 MB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002922/0.4069, allocations: 114.5 kB / 490.2 MB, free: 6.773 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.407, allocations: 4 kB / 490.2 MB, free: 6.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003063/0.41, allocations: 4.445 MB / 494.7 MB, free: 1.926 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.644e-06/0.41, allocations: 0 / 494.7 MB, free: 1.926 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004893/0.4105, allocations: 365.6 kB / 495 MB, free: 1.543 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001481/0.4107, allocations: 128.6 kB / 495.2 MB, free: 1.398 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.325e-05/0.4107, allocations: 7.984 kB / 495.2 MB, free: 1.391 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002336/0.411, allocations: 28.05 kB / 495.2 MB, free: 1.363 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.46e-05/0.4111, allocations: 23.91 kB / 495.2 MB, free: 1.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.4111, allocations: 8 kB / 495.2 MB, free: 1.332 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002249/0.4113, allocations: 218.2 kB / 495.4 MB, free: 1.117 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4113, allocations: 0 / 495.4 MB, free: 1.117 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006477/0.412, allocations: 111.8 kB / 495.6 MB, free: 1.008 MB / 362.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: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008333/0.4128, allocations: 0.9166 MB / 496.5 MB, free: 60 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008336/0.4137, allocations: 0.5309 MB / 497 MB, free: 15.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.4137, allocations: 0 / 497 MB, free: 15.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004374/0.4141, allocations: 455.7 kB / 497.4 MB, free: 15 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000362/0.4145, allocations: 57.75 kB / 497.5 MB, free: 14.95 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.4156, allocations: 490.8 kB / 498 MB, free: 14.44 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004011/0.4161, allocations: 0.8029 MB / 498.8 MB, free: 13.61 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001362/0.4162, allocations: 23.02 kB / 498.8 MB, free: 13.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001598/0.4164, allocations: 111.4 kB / 498.9 MB, free: 13.48 MB / 378.7 MB Notification: Performance of SimCode: time 2.414e-06/0.4164, allocations: 0 / 498.9 MB, free: 13.48 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02038/0.4368, allocations: 7.57 MB / 0.4946 GB, free: 6.105 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003095/0.4371, allocations: 197.8 kB / 0.4948 GB, free: 5.879 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.016/2.453, allocations: 0 / 0.4948 GB, free: 5.879 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat