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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001077/0.001077, allocations: 204.5 kB / 8.54 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.169/1.169, allocations: 225.5 MB / 234.4 MB, free: 3.316 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008818/0.0008818, allocations: 100.8 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09444/0.09535, allocations: 56.9 MB / 343.2 MB, free: 8.621 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0884/0.1838, allocations: 51.47 MB / 394.7 MB, free: 5.102 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2157/0.3996, allocations: 78.76 MB / 473.5 MB, free: 13.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001594/0.3998, allocations: 72.36 kB / 473.5 MB, free: 13.04 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.01553/0.4153, allocations: 6.911 MB / 480.4 MB, free: 8.469 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.436e-05/0.4153, allocations: 8 kB / 480.5 MB, free: 8.461 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003404/0.4157, allocations: 95.45 kB / 480.5 MB, free: 8.371 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003151/0.416, allocations: 294.9 kB / 480.8 MB, free: 8.066 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.416, allocations: 8 kB / 480.8 MB, free: 8.059 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.634e-05/0.4161, allocations: 20 kB / 480.9 MB, free: 8.039 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003634/0.4164, allocations: 213.5 kB / 481.1 MB, free: 7.91 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003976/0.4168, allocations: 285 kB / 481.3 MB, free: 7.684 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.4169, allocations: 11.17 kB / 481.4 MB, free: 7.676 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.746e-05/0.4169, allocations: 0 / 481.4 MB, free: 7.676 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.4169, allocations: 8 kB / 481.4 MB, free: 7.668 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001558/0.4185, allocations: 1.371 MB / 482.7 MB, free: 6.414 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002738/0.4188, allocations: 180 kB / 482.9 MB, free: 6.281 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001168/0.4189, allocations: 92.47 kB / 483 MB, free: 6.223 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.24e-05/0.4189, allocations: 4 kB / 483 MB, free: 6.219 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.714e-05/0.4189, allocations: 30.56 kB / 483 MB, free: 6.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.372e-06/0.419, allocations: 0 / 483 MB, free: 6.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004163/0.4194, allocations: 241.5 kB / 483.3 MB, free: 5.988 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.782e-05/0.4194, allocations: 58.72 kB / 483.3 MB, free: 5.922 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001872/0.4196, allocations: 240.1 kB / 483.6 MB, free: 5.727 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.67e-05/0.4196, allocations: 25.7 kB / 483.6 MB, free: 5.695 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.803e-05/0.4197, allocations: 175.3 kB / 483.8 MB, free: 5.535 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.797e-05/0.4197, allocations: 76.28 kB / 483.8 MB, free: 5.469 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.136e-05/0.4198, allocations: 0 / 483.8 MB, free: 5.469 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.137e-05/0.4198, allocations: 340.3 kB / 484.2 MB, free: 5.137 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.4199, allocations: 65.75 kB / 484.2 MB, free: 5.102 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000112/0.42, allocations: 98.16 kB / 484.3 MB, free: 5.02 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001119/0.4202, allocations: 64.44 kB / 484.4 MB, free: 4.98 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.4202, allocations: 0 / 484.4 MB, free: 4.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005222/0.4207, allocations: 302.3 kB / 484.7 MB, free: 4.734 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/0.4207, allocations: 8.062 kB / 484.7 MB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.4207, allocations: 4 kB / 484.7 MB, free: 4.723 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003604/0.4211, allocations: 115.7 kB / 484.8 MB, free: 4.629 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001738/0.4213, allocations: 35.92 kB / 484.8 MB, free: 4.594 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002222/0.4235, allocations: 3.977 MB / 488.8 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001952/0.4237, allocations: 35.77 kB / 488.9 MB, free: 472 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.059e-05/0.4238, allocations: 8 kB / 488.9 MB, free: 464 kB / 346.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 6.741e-05/0.4238, allocations: 108.8 kB / 489 MB, free: 352 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.298e-05/0.4239, allocations: 31.62 kB / 489 MB, free: 320 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.47e-05/0.4239, allocations: 33.5 kB / 489 MB, free: 304 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.4239, allocations: 4 kB / 489 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.424, allocations: 6.719 kB / 489 MB, free: 296 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.424, allocations: 7.891 kB / 489.1 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002912/0.4243, allocations: 313.7 kB / 489.4 MB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.4243, allocations: 0 / 489.4 MB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001258/0.4244, allocations: 21.38 kB / 489.4 MB, free: 15.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000303/0.4247, allocations: 117.2 kB / 489.5 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.496e-05/0.4247, allocations: 0 / 489.5 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002774/0.4275, allocations: 3.984 MB / 493.5 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.4275, allocations: 0.8125 kB / 493.5 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004038/0.428, allocations: 344.2 kB / 493.8 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005028/0.4285, allocations: 0.7222 MB / 494.5 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001265/0.4286, allocations: 128.1 kB / 494.7 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.148e-05/0.4287, allocations: 0 / 494.7 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002476/0.4289, allocations: 27.92 kB / 494.7 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.977e-05/0.429, allocations: 15.84 kB / 494.7 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.178e-05/0.429, allocations: 8.75 kB / 494.7 MB, free: 10.6 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001605/0.4292, allocations: 189.8 kB / 494.9 MB, free: 10.45 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009743/0.4302, allocations: 107.7 kB / 495 MB, free: 10.35 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.000129/0.4303, allocations: 95.25 kB / 495.1 MB, free: 10.24 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005933/0.4309, allocations: 495.4 kB / 495.6 MB, free: 9.789 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.4309, allocations: 0 / 495.6 MB, free: 9.789 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003582/0.4313, allocations: 407.6 kB / 496 MB, free: 9.398 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002734/0.4316, allocations: 39.98 kB / 496 MB, free: 9.371 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008757/0.4325, allocations: 398.8 kB / 496.4 MB, free: 8.992 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003883/0.4329, allocations: 0.822 MB / 497.2 MB, free: 8.145 MB / 362.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4329, allocations: 0 / 497.2 MB, free: 8.145 MB / 362.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