Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.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.HeatingNPN_NORGate,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001514/0.001515, allocations: 200.5 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.239/1.239, allocations: 226.5 MB / 244.7 MB, free: 6.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007289/0.0007289, allocations: 104.9 kB / 296.7 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002236/0.0002237, allocations: 8 kB / 356.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1938/0.1941, allocations: 51.28 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.003198/0.1973, allocations: 4.302 MB / 412.4 MB, free: 23.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001765/0.1991, allocations: 1.242 MB / 413.7 MB, free: 22.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004048/0.1995, allocations: 11.94 kB / 413.7 MB, free: 22.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002337/0.1998, allocations: 87.3 kB / 413.8 MB, free: 22.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000435/0.2002, allocations: 225.1 kB / 414 MB, free: 21.81 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000523/0.2007, allocations: 215.7 kB / 414.2 MB, free: 21.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007897/0.2015, allocations: 0.9935 MB / 415.2 MB, free: 20.6 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002946/0.2018, allocations: 219.4 kB / 415.4 MB, free: 20.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003836/0.2022, allocations: 354.7 kB / 415.7 MB, free: 20.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000398/0.2026, allocations: 422.2 kB / 416.2 MB, free: 19.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000111/0.2028, allocations: 44 kB / 416.2 MB, free: 19.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001796/0.2029, allocations: 75.98 kB / 416.3 MB, free: 19.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.599e-05/0.203, allocations: 143.4 kB / 416.4 MB, free: 19.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003027/0.2034, allocations: 419.7 kB / 416.8 MB, free: 18.94 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004489/0.2038, allocations: 0.7335 MB / 417.6 MB, free: 18.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.2038, allocations: 3.938 kB / 417.6 MB, free: 18.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2038, allocations: 0 / 417.6 MB, free: 18.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.315e-05/0.2039, allocations: 0 / 417.6 MB, free: 18.2 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.001962/0.2058, allocations: 1.153 MB / 418.7 MB, free: 16.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.2059, allocations: 12.03 kB / 418.7 MB, free: 16.96 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001147/0.206, allocations: 106.7 kB / 418.8 MB, free: 16.85 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/0.2061, allocations: 91.91 kB / 418.9 MB, free: 16.76 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004451/0.2066, allocations: 479.5 kB / 419.4 MB, free: 16.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.678e-05/0.2066, allocations: 49.69 kB / 419.4 MB, free: 16.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.625e-05/0.2067, allocations: 60.38 kB / 419.5 MB, free: 16.15 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001219/0.2079, allocations: 0.682 MB / 420.2 MB, free: 15.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.208, allocations: 4 kB / 420.2 MB, free: 15.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.559e-05/0.208, allocations: 28 kB / 420.2 MB, free: 15.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.208, allocations: 12 kB / 420.2 MB, free: 15.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001515/0.2096, allocations: 0.7507 MB / 421 MB, free: 14.66 MB / 298.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003152/0.2127, allocations: 2.437 MB / 423.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001309/0.214, allocations: 0.6296 MB / 424 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006694/0.2147, allocations: 365.9 kB / 424.4 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.798e-05/0.2148, allocations: 12.42 kB / 424.4 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000848/0.2156, allocations: 449.4 kB / 424.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 2.504e-06/0.2156, allocations: 0 / 424.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.06486/0.2805, allocations: 16.75 MB / 441.6 MB, free: 9.754 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.664e-05/0.2806, allocations: 145.5 kB / 441.7 MB, free: 9.582 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005972/0.2812, allocations: 0.5146 MB / 442.3 MB, free: 9.059 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001105/0.2814, allocations: 41.7 kB / 442.3 MB, free: 9.012 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002588/0.2816, allocations: 387.8 kB / 442.7 MB, free: 8.625 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002702/0.2819, allocations: 319.4 kB / 443 MB, free: 8.309 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.428e-05/0.282, allocations: 20 kB / 443 MB, free: 8.289 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.2822, allocations: 390.7 kB / 443.4 MB, free: 7.898 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002054/0.2842, allocations: 0.7908 MB / 444.2 MB, free: 7.109 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002147/0.2864, allocations: 1.029 MB / 445.2 MB, free: 5.988 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004116/0.2905, allocations: 1.845 MB / 447 MB, free: 4.051 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.2905, allocations: 0 / 447 MB, free: 4.051 MB / 314.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02251/0.313, allocations: 5.651 MB / 452.7 MB, free: 14.36 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.376e-05/0.3131, allocations: 71.33 kB / 452.8 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.7e-05/0.3132, allocations: 8 kB / 452.8 MB, free: 14.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03352/0.3467, allocations: 7.313 MB / 460.1 MB, free: 6.941 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006861/0.3474, allocations: 175.7 kB / 460.3 MB, free: 6.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006401/0.3538, allocations: 3.223 MB / 463.5 MB, free: 3.492 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001572/0.3554, allocations: 224 kB / 463.7 MB, free: 3.273 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001249/0.3556, allocations: 55.97 kB / 463.8 MB, free: 3.219 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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.0003902/0.356, allocations: 228.9 kB / 464 MB, free: 2.988 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001493/0.3561, allocations: 86.91 kB / 464.1 MB, free: 2.902 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02175/0.3779, allocations: 5.459 MB / 469.5 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-05/0.3779, allocations: 8 kB / 469.5 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3779, allocations: 0 / 469.5 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/0.3779, allocations: 7.922 kB / 469.5 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001392/0.3793, allocations: 1.123 MB / 470.7 MB, free: 12.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.3794, allocations: 0 / 470.7 MB, free: 12.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005537/0.3799, allocations: 123.9 kB / 470.8 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03332/0.4133, allocations: 7.285 MB / 478.1 MB, free: 4.809 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001916/0.4135, allocations: 23.98 kB / 478.1 MB, free: 4.785 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0058/0.4193, allocations: 3.084 MB / 481.2 MB, free: 1.645 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/0.4193, allocations: 7.938 kB / 481.2 MB, free: 1.637 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02409/0.4434, allocations: 6.416 MB / 487.6 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002538/0.4437, allocations: 148.1 kB / 487.7 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001887/0.4439, allocations: 20 kB / 487.8 MB, free: 11.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001383/0.4453, allocations: 212.1 kB / 488 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003165/0.4456, allocations: 100.8 kB / 488.1 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.4457, allocations: 39.97 kB / 488.1 MB, free: 10.66 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004136/0.4462, allocations: 346.8 kB / 488.5 MB, free: 10.33 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4462, allocations: 3.938 kB / 488.5 MB, free: 10.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000773/0.4469, allocations: 260 kB / 488.7 MB, free: 10.07 MB / 362.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.02446/0.4714, allocations: 7.009 MB / 495.7 MB, free: 3.012 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00675/0.4782, allocations: 2.328 MB / 498 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.4782, allocations: 1.375 kB / 498 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003444/0.4817, allocations: 1.163 MB / 499.2 MB, free: 15.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000764/0.4824, allocations: 124.4 kB / 499.3 MB, free: 15.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03185/0.5143, allocations: 10.4 MB / 0.4978 GB, free: 4.789 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005429/0.5149, allocations: 0.9507 MB / 0.4987 GB, free: 3.809 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004264/0.5153, allocations: 275.3 kB / 0.499 GB, free: 3.539 MB / 378.7 MB Notification: Performance of SimCode: time 1.332e-06/0.5153, allocations: 0 / 0.499 GB, free: 3.539 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.914/4.429, allocations: 19.24 MB / 0.5178 GB, free: 90.78 MB / 378.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches