Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 114.7 kB / 19.17 MB, free: 3.891 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 203.8 kB / 22.11 MB, free: 0.9531 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.623/1.623, allocations: 207.6 MB / 232.5 MB, free: 3.938 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002028/0.002028, allocations: 59.91 kB / 343 MB, free: 9.969 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09276/0.09479, allocations: 49.12 MB / 392.1 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.006971/0.1018, allocations: 4.724 MB / 396.9 MB, free: 3.934 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003062/0.1048, allocations: 1.283 MB / 398.1 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006567/0.1055, allocations: 15.94 kB / 398.2 MB, free: 2.625 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000471/0.106, allocations: 114.8 kB / 398.3 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008762/0.1068, allocations: 249.8 kB / 398.5 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009464/0.1078, allocations: 303.5 kB / 398.8 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001581/0.1094, allocations: 1.056 MB / 399.9 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004516/0.1098, allocations: 194.3 kB / 400.1 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008271/0.1106, allocations: 414.6 kB / 400.5 MB, free: 304 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008743/0.1115, allocations: 466.1 kB / 400.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002726/0.1118, allocations: 88 kB / 401 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003534/0.1121, allocations: 112 kB / 401.1 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002471/0.1124, allocations: 191.4 kB / 401.3 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005184/0.1129, allocations: 441.9 kB / 401.7 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001321/0.1142, allocations: 1.004 MB / 402.7 MB, free: 14.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1142, allocations: 0 / 402.7 MB, free: 14.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1142, allocations: 0 / 402.7 MB, free: 14.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.442e-05/0.1142, allocations: 0 / 402.7 MB, free: 14.02 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.00269/0.1169, allocations: 1.234 MB / 404 MB, free: 12.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.117, allocations: 12.03 kB / 404 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.292e-05/0.117, allocations: 17.44 kB / 404 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001337/0.1172, allocations: 102.7 kB / 404.1 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001837/0.1173, allocations: 92.38 kB / 404.2 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007882/0.1181, allocations: 477.8 kB / 404.7 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.123e-05/0.1182, allocations: 49.67 kB / 404.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000118/0.1183, allocations: 60.38 kB / 404.8 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/0.1198, allocations: 0.6427 MB / 405.4 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.153e-05/0.1198, allocations: 0 / 405.4 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.199e-05/0.1199, allocations: 28 kB / 405.4 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.664e-05/0.1199, allocations: 16 kB / 405.4 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001811/0.1217, allocations: 0.6726 MB / 406.1 MB, free: 10.5 MB / 334.1 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.004507/0.1262, allocations: 2.313 MB / 408.4 MB, free: 8.043 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00159/0.1278, allocations: 0.5669 MB / 409 MB, free: 7.469 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007795/0.1286, allocations: 306 kB / 409.3 MB, free: 7.164 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.339e-05/0.1287, allocations: 16.36 kB / 409.3 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001097/0.1298, allocations: 425.4 kB / 409.7 MB, free: 6.707 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.996e-06/0.1298, allocations: 4 kB / 409.7 MB, free: 6.703 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.07051/0.2003, allocations: 15.38 MB / 425.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.2004, allocations: 141.5 kB / 425.2 MB, free: 7.062 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006559/0.201, allocations: 494.9 kB / 425.7 MB, free: 6.566 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001754/0.2012, allocations: 45.7 kB / 425.8 MB, free: 6.516 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003079/0.2015, allocations: 380.7 kB / 426.1 MB, free: 6.137 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000338/0.2019, allocations: 317.2 kB / 426.5 MB, free: 5.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000387/0.2022, allocations: 190.5 kB / 426.6 MB, free: 5.629 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000209/0.2025, allocations: 382.8 kB / 427 MB, free: 5.246 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002069/0.2045, allocations: 0.7163 MB / 427.7 MB, free: 4.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002265/0.2068, allocations: 0.9265 MB / 428.7 MB, free: 3.527 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004257/0.211, allocations: 1.654 MB / 430.3 MB, free: 1.789 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-06/0.2111, allocations: 8 kB / 430.3 MB, free: 1.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02335/0.2344, allocations: 5.308 MB / 435.6 MB, free: 12.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001168/0.2345, allocations: 59.41 kB / 435.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.388e-05/0.2345, allocations: 12.12 kB / 435.7 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03386/0.2684, allocations: 6.833 MB / 442.5 MB, free: 5.512 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008877/0.2693, allocations: 147.7 kB / 442.7 MB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00765/0.2769, allocations: 3.168 MB / 445.8 MB, free: 2.145 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00175/0.2787, allocations: 171.9 kB / 446 MB, free: 1.977 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00013/0.2788, allocations: 51.91 kB / 446.1 MB, free: 1.926 MB / 366.1 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 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0005368/0.2794, allocations: 221.6 kB / 446.3 MB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002008/0.2796, allocations: 79.53 kB / 446.4 MB, free: 1.621 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02234/0.3019, allocations: 5.068 MB / 451.4 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.011e-05/0.3019, allocations: 12 kB / 451.4 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.3019, allocations: 0 / 451.4 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.451e-05/0.3019, allocations: 3.984 kB / 451.4 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001643/0.3036, allocations: 1.096 MB / 452.5 MB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.3036, allocations: 7.938 kB / 452.5 MB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005299/0.3041, allocations: 91.88 kB / 452.6 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03303/0.3372, allocations: 6.797 MB / 459.4 MB, free: 4.461 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001937/0.3374, allocations: 23.98 kB / 459.5 MB, free: 4.438 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005971/0.3433, allocations: 3.044 MB / 462.5 MB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3433, allocations: 0 / 462.5 MB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1993/0.5426, allocations: 5.945 MB / 468.4 MB, free: 68.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001837/0.5428, allocations: 142.7 kB / 468.6 MB, free: 68.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001546/0.543, allocations: 19.69 kB / 468.6 MB, free: 68.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00132/0.5443, allocations: 167.1 kB / 468.8 MB, free: 68.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002844/0.5446, allocations: 97.38 kB / 468.9 MB, free: 68.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.225e-05/0.5447, allocations: 30.8 kB / 468.9 MB, free: 68.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003686/0.545, allocations: 340 kB / 469.2 MB, free: 68.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.545, allocations: 3.906 kB / 469.2 MB, free: 68.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007708/0.5458, allocations: 258.1 kB / 469.5 MB, free: 68.19 MB / 382.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02396/0.5698, allocations: 6.53 MB / 476 MB, free: 66.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006595/0.5764, allocations: 2.083 MB / 478.1 MB, free: 65.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.5764, allocations: 4.125 kB / 478.1 MB, free: 65.19 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003145/0.5795, allocations: 1.015 MB / 479.1 MB, free: 64.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007467/0.5803, allocations: 126.8 kB / 479.2 MB, free: 64.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04792/0.6282, allocations: 15.66 MB / 494.9 MB, free: 50.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.6285, allocations: 0.9369 MB / 495.8 MB, free: 49.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003292/0.6288, allocations: 53.64 kB / 495.9 MB, free: 49.06 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002832/0.6291, allocations: 263.3 kB / 496.1 MB, free: 48.8 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.6291, allocations: 4 kB / 496.1 MB, free: 48.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05381/0.6829, allocations: 29.31 MB / 0.5131 GB, free: 19.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.13/14.81, allocations: 11.98 kB / 0.5132 GB, free: 19.42 MB / 382.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate_fmu --startTime=0 --stopTime=200 --stepSize=0.0396668 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingNPN_OrGate/HeatingNPN_OrGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.00040874100523]