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"}) [: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 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 183.9 kB / 8.135 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.101/1.101, allocations: 221.4 MB / 229.9 MB, free: 3.086 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.0008567/0.0008566, allocations: 103.9 kB / 280.8 MB, free: 1.312 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09342/0.09432, allocations: 55.82 MB / 336.6 MB, free: 9.492 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1749/0.2692, allocations: 50.39 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07918/0.3484, allocations: 77.95 MB / 464.9 MB, free: 8.859 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001721/0.3487, allocations: 71.97 kB / 465 MB, free: 8.789 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.01755/0.3662, allocations: 6.861 MB / 471.9 MB, free: 1.871 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.3663, allocations: 12 kB / 471.9 MB, free: 1.859 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001024/0.3664, allocations: 55.42 kB / 471.9 MB, free: 1.805 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003834/0.3668, allocations: 295.2 kB / 472.2 MB, free: 1.477 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.3668, allocations: 9.312 kB / 472.2 MB, free: 1.469 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.416e-05/0.3669, allocations: 20 kB / 472.3 MB, free: 1.449 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004112/0.3673, allocations: 209.3 kB / 472.5 MB, free: 1.242 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004472/0.3677, allocations: 285.5 kB / 472.7 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.3678, allocations: 0 / 472.7 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.279e-05/0.3678, allocations: 15.84 kB / 472.8 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.3678, allocations: 8 kB / 472.8 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001926/0.3697, allocations: 1.371 MB / 474.1 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000313/0.3701, allocations: 185.8 kB / 474.3 MB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001381/0.3702, allocations: 88.8 kB / 474.4 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.3703, allocations: 6.531 kB / 474.4 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.027e-05/0.3703, allocations: 42.55 kB / 474.5 MB, free: 15.13 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.372e-06/0.3703, allocations: 0 / 474.5 MB, free: 15.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004643/0.3708, allocations: 236.1 kB / 474.7 MB, free: 14.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.832e-05/0.3708, allocations: 59.41 kB / 474.7 MB, free: 14.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000239/0.3711, allocations: 235.6 kB / 475 MB, free: 14.58 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.113e-05/0.3711, allocations: 25.7 kB / 475 MB, free: 14.55 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.503e-05/0.3712, allocations: 188 kB / 475.2 MB, free: 14.36 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.989e-05/0.3712, allocations: 70.91 kB / 475.3 MB, free: 14.29 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.145e-05/0.3713, allocations: 0 / 475.3 MB, free: 14.29 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.3714, allocations: 342.7 kB / 475.6 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/0.3715, allocations: 56 kB / 475.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001313/0.3717, allocations: 104.2 kB / 475.7 MB, free: 13.78 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001291/0.3718, allocations: 65 kB / 475.8 MB, free: 13.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3718, allocations: 0 / 475.8 MB, free: 13.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005963/0.3724, allocations: 301.9 kB / 476.1 MB, free: 13.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.3724, allocations: 8 kB / 476.1 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.3724, allocations: 0 / 476.1 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003877/0.3728, allocations: 118.6 kB / 476.2 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001852/0.373, allocations: 31.92 kB / 476.3 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003176/0.3762, allocations: 3.98 MB / 480.2 MB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002007/0.3764, allocations: 23.83 kB / 480.3 MB, free: 8.891 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.3765, allocations: 12.06 kB / 480.3 MB, free: 8.879 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 0.0001054/0.3766, allocations: 104.9 kB / 480.4 MB, free: 8.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.998e-05/0.3766, allocations: 31.69 kB / 480.4 MB, free: 8.738 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.269e-05/0.3767, allocations: 34.19 kB / 480.4 MB, free: 8.707 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.3767, allocations: 5.312 kB / 480.4 MB, free: 8.703 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3767, allocations: 0 / 480.4 MB, free: 8.703 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.3767, allocations: 3.938 kB / 480.4 MB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003553/0.3771, allocations: 325.8 kB / 480.8 MB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.3771, allocations: 4 kB / 480.8 MB, free: 8.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001358/0.3772, allocations: 23.98 kB / 480.8 MB, free: 8.316 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003094/0.3776, allocations: 110.6 kB / 480.9 MB, free: 8.199 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.3776, allocations: 4 kB / 480.9 MB, free: 8.195 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002962/0.3806, allocations: 3.983 MB / 484.9 MB, free: 3.871 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3806, allocations: 0 / 484.9 MB, free: 3.871 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004214/0.381, allocations: 355.9 kB / 485.2 MB, free: 3.5 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005197/0.3815, allocations: 0.7183 MB / 486 MB, free: 2.754 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.3817, allocations: 124.7 kB / 486.1 MB, free: 2.613 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.354e-05/0.3817, allocations: 3.906 kB / 486.1 MB, free: 2.609 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002399/0.382, allocations: 21.02 kB / 486.1 MB, free: 2.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.103e-05/0.382, allocations: 19.97 kB / 486.1 MB, free: 2.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.3821, allocations: 4 kB / 486.1 MB, free: 2.566 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001678/0.3822, allocations: 191.1 kB / 486.3 MB, free: 2.379 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009544/0.3832, allocations: 99.75 kB / 486.4 MB, free: 2.281 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.000119/0.3833, allocations: 103.2 kB / 486.5 MB, free: 2.168 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006461/0.384, allocations: 485.9 kB / 487 MB, free: 1.664 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.384, allocations: 0 / 487 MB, free: 1.664 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003883/0.3844, allocations: 408 kB / 487.4 MB, free: 1.238 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.3847, allocations: 44.78 kB / 487.4 MB, free: 1.199 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000879/0.3856, allocations: 388.7 kB / 487.8 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004209/0.386, allocations: 0.8158 MB / 488.6 MB, free: 15.95 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.386, allocations: 0 / 488.6 MB, free: 15.95 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