Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001617/0.001617, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007628/0.0007628, allocations: 97.38 kB / 292.1 MB, free: 5.922 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.888e-05/4.911e-05, allocations: 4 kB / 350.6 MB, free: 2.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1237, allocations: 51.48 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3115/0.4352, allocations: 79.49 MB / 481.6 MB, free: 9.996 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002224/0.4355, allocations: 74.64 kB / 481.7 MB, free: 9.957 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01511/0.4506, allocations: 6.597 MB / 488.3 MB, free: 4.406 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4507, allocations: 0 / 488.3 MB, free: 4.406 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.923e-05/0.4507, allocations: 8 kB / 488.3 MB, free: 4.398 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.0007225/0.4514, allocations: 0.6171 MB / 488.9 MB, free: 3.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.4515, allocations: 8.031 kB / 488.9 MB, free: 3.762 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.985e-05/0.4515, allocations: 68.47 kB / 489 MB, free: 3.703 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002853/0.4518, allocations: 86.72 kB / 489.1 MB, free: 3.621 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002935/0.4521, allocations: 302.3 kB / 489.4 MB, free: 3.312 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.4522, allocations: 22.28 kB / 489.4 MB, free: 3.301 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.722e-05/0.4522, allocations: 30.06 kB / 489.4 MB, free: 3.281 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004416/0.4526, allocations: 335.5 kB / 489.7 MB, free: 3.031 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.4527, allocations: 4 kB / 489.7 MB, free: 3.027 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.045e-05/0.4527, allocations: 16.62 kB / 489.8 MB, free: 3.023 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.4527, allocations: 8 kB / 489.8 MB, free: 3.016 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003382/0.4531, allocations: 232.1 kB / 490 MB, free: 2.871 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001568/0.4546, allocations: 1.439 MB / 491.4 MB, free: 1.562 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003196/0.455, allocations: 206.8 kB / 491.6 MB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.4551, allocations: 90.42 kB / 491.7 MB, free: 1.355 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.629e-05/0.4552, allocations: 7.938 kB / 491.7 MB, free: 1.348 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.473e-05/0.4552, allocations: 42.56 kB / 491.8 MB, free: 1.297 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.4552, allocations: 0 / 491.8 MB, free: 1.297 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004824/0.4557, allocations: 267.2 kB / 492 MB, free: 1.023 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.958e-05/0.4557, allocations: 51.41 kB / 492.1 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000235/0.456, allocations: 270.8 kB / 492.4 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.456, allocations: 25.7 kB / 492.4 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.446e-05/0.4561, allocations: 212.2 kB / 492.6 MB, free: 460 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.497e-05/0.4561, allocations: 78.91 kB / 492.7 MB, free: 380 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.252e-05/0.4562, allocations: 4.562 kB / 492.7 MB, free: 376 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.801e-05/0.4562, allocations: 334.8 kB / 493 MB, free: 32 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001456/0.4564, allocations: 68.05 kB / 493.1 MB, free: 15.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000158/0.4566, allocations: 108.2 kB / 493.2 MB, free: 15.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001422/0.4567, allocations: 71.44 kB / 493.2 MB, free: 15.78 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4567, allocations: 0 / 493.2 MB, free: 15.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006439/0.4574, allocations: 333.1 kB / 493.6 MB, free: 15.44 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.4574, allocations: 7.984 kB / 493.6 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.507e-06/0.4574, allocations: 4 kB / 493.6 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004113/0.4578, allocations: 114.5 kB / 493.7 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001967/0.458, allocations: 35.95 kB / 493.7 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003504/0.4616, allocations: 4.435 MB / 498.2 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002033/0.4618, allocations: 31.84 kB / 498.2 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.368e-05/0.4618, allocations: 15.98 kB / 498.2 MB, free: 10.38 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 9.001e-05/0.4619, allocations: 116.9 kB / 498.3 MB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.73e-05/0.462, allocations: 31.62 kB / 498.3 MB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.516e-05/0.4621, allocations: 38.95 kB / 498.4 MB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.4621, allocations: 4 kB / 498.4 MB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.275e-06/0.4621, allocations: 0.75 kB / 498.4 MB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.4621, allocations: 4.141 kB / 498.4 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003999/0.4625, allocations: 389.2 kB / 498.8 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.4625, allocations: 0 / 498.8 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/0.4626, allocations: 19.98 kB / 498.8 MB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002948/0.4629, allocations: 106.5 kB / 498.9 MB, free: 9.621 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.984e-05/0.463, allocations: 11.98 kB / 498.9 MB, free: 9.609 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003219/0.4662, allocations: 4.438 MB / 0.4916 GB, free: 4.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4662, allocations: 1.219 kB / 0.4916 GB, free: 4.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004495/0.4667, allocations: 383.6 kB / 0.4919 GB, free: 4.371 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001237/0.4668, allocations: 128.7 kB / 0.492 GB, free: 4.227 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.306e-05/0.4668, allocations: 4 kB / 0.492 GB, free: 4.223 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002305/0.4671, allocations: 24.17 kB / 0.4921 GB, free: 4.199 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.894e-05/0.4672, allocations: 31.81 kB / 0.4921 GB, free: 4.168 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.4672, allocations: 12 kB / 0.4921 GB, free: 4.156 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002128/0.4674, allocations: 214.2 kB / 0.4923 GB, free: 3.945 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4674, allocations: 0 / 0.4923 GB, free: 3.945 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005997/0.468, allocations: 119.7 kB / 0.4924 GB, free: 3.828 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.0007684/0.4688, allocations: 0.9112 MB / 0.4933 GB, free: 2.883 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007387/0.4695, allocations: 0.5326 MB / 0.4938 GB, free: 2.316 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.4696, allocations: 0 / 0.4938 GB, free: 2.316 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000448/0.47, allocations: 467.7 kB / 0.4943 GB, free: 1.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003231/0.4703, allocations: 52.02 kB / 0.4943 GB, free: 1.77 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009579/0.4713, allocations: 474.1 kB / 0.4948 GB, free: 1.273 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003368/0.4717, allocations: 0.8036 MB / 0.4956 GB, free: 452 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001097/0.4718, allocations: 26.97 kB / 0.4956 GB, free: 424 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001263/0.4719, allocations: 103.4 kB / 0.4957 GB, free: 324 kB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4719, allocations: 0 / 0.4957 GB, free: 324 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02088/0.4928, allocations: 7.554 MB / 0.5031 GB, free: 9.066 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/0.493, allocations: 196.2 kB / 0.5033 GB, free: 8.84 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.971/2.464, allocations: 0 / 0.5033 GB, free: 8.84 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat