Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.143/2.143, allocations: 194.9 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003863/0.0003862, allocations: 15.98 kB / 264.1 MB, free: 3.477 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.2987, allocations: 44.5 MB / 308.6 MB, free: 12.67 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1538/0.4526, allocations: 76.75 MB / 385.3 MB, free: 15.81 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003782/0.453, allocations: 71.97 kB / 385.4 MB, free: 15.74 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07953/0.5326, allocations: 13.93 MB / 399.3 MB, free: 1.766 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.5326, allocations: 0 / 399.3 MB, free: 1.766 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.578e-05/0.5327, allocations: 16 kB / 399.3 MB, free: 1.75 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.006944/0.5396, allocations: 1.405 MB / 400.7 MB, free: 288 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.5397, allocations: 8.031 kB / 400.7 MB, free: 280 kB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004354/0.5402, allocations: 106.5 kB / 400.8 MB, free: 164 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002884/0.5405, allocations: 90.92 kB / 400.9 MB, free: 72 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002285/0.5428, allocations: 0.5835 MB / 401.5 MB, free: 15.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.404e-05/0.5429, allocations: 53.31 kB / 401.6 MB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002173/0.5431, allocations: 60 kB / 401.6 MB, free: 15.33 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003714/0.5468, allocations: 0.8613 MB / 402.5 MB, free: 14.46 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.343e-05/0.5469, allocations: 4 kB / 402.5 MB, free: 14.46 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001196/0.547, allocations: 24 kB / 402.5 MB, free: 14.44 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.302e-05/0.5471, allocations: 16 kB / 402.5 MB, free: 14.42 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007297/0.5544, allocations: 1.102 MB / 403.6 MB, free: 13.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01058/0.565, allocations: 2.342 MB / 406 MB, free: 10.88 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009914/0.575, allocations: 0.8708 MB / 406.8 MB, free: 10.01 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001203/0.5752, allocations: 12.42 kB / 406.9 MB, free: 9.996 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008031/0.5832, allocations: 0.6262 MB / 407.5 MB, free: 9.344 MB / 346.7 MB Notification: Performance of pre-optimization done (n=54): time 5.09e-06/0.5833, allocations: 0 / 407.5 MB, free: 9.344 MB / 346.7 MB Notification: Performance of matching and sorting (n=94): time 0.4557/1.039, allocations: 15.33 MB / 422.8 MB, free: 93.33 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.346e-05/1.039, allocations: 145.2 kB / 423 MB, free: 93.17 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007885/1.04, allocations: 448 kB / 423.4 MB, free: 93.06 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002792/1.04, allocations: 42.86 kB / 423.4 MB, free: 93.03 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002854/1.041, allocations: 379.1 kB / 423.8 MB, free: 92.86 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003561/1.041, allocations: 314.5 kB / 424.1 MB, free: 92.7 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/1.041, allocations: 17.31 kB / 424.1 MB, free: 92.7 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001331/1.041, allocations: 390 kB / 424.5 MB, free: 92.39 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00477/1.046, allocations: 1.008 MB / 425.5 MB, free: 92.39 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005014/1.051, allocations: 1.218 MB / 426.7 MB, free: 92.17 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004939/1.056, allocations: 1.093 MB / 427.8 MB, free: 91.85 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.471e-05/1.056, allocations: 1.562 kB / 427.8 MB, free: 91.85 MB / 346.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0765/1.133, allocations: 7.374 MB / 435.2 MB, free: 87.47 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.296e-05/1.133, allocations: 67.52 kB / 435.3 MB, free: 87.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.109e-05/1.133, allocations: 4 kB / 435.3 MB, free: 87.39 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06106/1.194, allocations: 6.701 MB / 442 MB, free: 80.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/1.195, allocations: 187.7 kB / 442.2 MB, free: 80.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0137/1.209, allocations: 3.704 MB / 445.9 MB, free: 76.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003762/1.213, allocations: 295.7 kB / 446.2 MB, free: 76.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002403/1.213, allocations: 47.97 kB / 446.2 MB, free: 76.41 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0006591/1.214, allocations: 219.1 kB / 446.4 MB, free: 76.2 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002621/1.214, allocations: 77.89 kB / 446.5 MB, free: 76.12 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04565/1.26, allocations: 5.945 MB / 452.4 MB, free: 70.17 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.182e-05/1.26, allocations: 15.05 kB / 452.4 MB, free: 70.16 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/1.26, allocations: 0 / 452.4 MB, free: 70.16 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.381e-05/1.26, allocations: 7.969 kB / 452.5 MB, free: 70.15 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002317/1.262, allocations: 1.25 MB / 453.7 MB, free: 68.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.208e-06/1.262, allocations: 3.953 kB / 453.7 MB, free: 68.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/1.263, allocations: 123.9 kB / 453.8 MB, free: 68.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05865/1.322, allocations: 6.664 MB / 460.5 MB, free: 62.1 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003254/1.322, allocations: 23.97 kB / 460.5 MB, free: 62.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05386/1.376, allocations: 10.81 MB / 471.3 MB, free: 51.1 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/1.376, allocations: 0 / 471.3 MB, free: 51.1 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05132/1.428, allocations: 7.122 MB / 478.4 MB, free: 43.96 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009447/1.429, allocations: 280 kB / 478.7 MB, free: 43.67 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003133/1.429, allocations: 23.89 kB / 478.7 MB, free: 43.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003515/1.433, allocations: 298.4 kB / 479 MB, free: 43.36 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007677/1.433, allocations: 136.8 kB / 479.2 MB, free: 43.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001685/1.434, allocations: 31.98 kB / 479.2 MB, free: 43.2 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005714/1.434, allocations: 342.8 kB / 479.5 MB, free: 42.86 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.7e-07/1.434, allocations: 0 / 479.5 MB, free: 42.86 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00158/1.436, allocations: 324 kB / 479.9 MB, free: 42.55 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.05189/1.488, allocations: 7.695 MB / 487.5 MB, free: 34.82 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01268/1.5, allocations: 2.608 MB / 490.2 MB, free: 32.19 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.236e-06/1.5, allocations: 1.125 kB / 490.2 MB, free: 32.19 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009836/1.51, allocations: 1.771 MB / 491.9 MB, free: 30.41 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/1.511, allocations: 109.8 kB / 492 MB, free: 30.31 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08194/1.593, allocations: 16.6 MB / 0.4967 GB, free: 13.57 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004533/1.594, allocations: 0.9704 MB / 0.4977 GB, free: 12.57 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005291/1.594, allocations: 54.22 kB / 0.4977 GB, free: 12.52 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004875/1.595, allocations: 263.3 kB / 0.498 GB, free: 12.27 MB / 346.7 MB Notification: Performance of SimCode: time 1.323e-06/1.595, allocations: 7.938 kB / 0.498 GB, free: 12.26 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1165/1.711, allocations: 34.41 MB / 0.5316 GB, free: 9.887 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003077/1.712, allocations: 217.3 kB / 0.5318 GB, free: 9.641 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.56/6.272, allocations: 0 / 0.5318 GB, free: 9.641 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat does not exist to compare? outputFormat=mat