Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001072/0.001072, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001167/0.001167, allocations: 199.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001138/0.001138, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2211/0.2222, allocations: 50.54 MB / 408.7 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002985/0.2252, allocations: 2.034 MB / 410.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00184/0.2271, allocations: 1.278 MB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.66e-05/0.2272, allocations: 0 / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000765/0.228, allocations: 310.8 kB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005022/0.2285, allocations: 251.1 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004808/0.229, allocations: 231.5 kB / 412.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003473/0.2293, allocations: 351.1 kB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.2295, allocations: 60.7 kB / 413.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000169/0.2297, allocations: 147.4 kB / 413.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001742/0.2298, allocations: 147.4 kB / 413.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.672e-05/0.2299, allocations: 16 kB / 413.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001674/0.2301, allocations: 87.88 kB / 413.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.2302, allocations: 91.72 kB / 413.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.2303, allocations: 127.2 kB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003919/0.2307, allocations: 361.6 kB / 414.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.2307, allocations: 4 kB / 414.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2307, allocations: 4 kB / 414.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.411e-06/0.2307, allocations: 0 / 414.2 MB, free: 12.05 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008521/0.2316, allocations: 0.6841 MB / 414.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.2316, allocations: 12.03 kB / 414.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.851e-05/0.2317, allocations: 38.75 kB / 414.9 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.616e-05/0.2318, allocations: 44.69 kB / 415 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003983/0.2322, allocations: 338.7 kB / 415.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.676e-05/0.2322, allocations: 12.31 kB / 415.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.664e-05/0.2322, allocations: 15.94 kB / 415.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002805/0.2325, allocations: 147.1 kB / 415.5 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.2325, allocations: 4 kB / 415.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.574e-05/0.2325, allocations: 4 kB / 415.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.2326, allocations: 4 kB / 415.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001643/0.2327, allocations: 67.95 kB / 415.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006587/0.2334, allocations: 0.4887 MB / 416 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003114/0.2337, allocations: 130.7 kB / 416.2 MB, free: 9.895 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.2338, allocations: 48.84 kB / 416.2 MB, free: 9.844 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.2339, allocations: 8 kB / 416.2 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002236/0.2341, allocations: 115.2 kB / 416.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.723e-06/0.2341, allocations: 0 / 416.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.000485/0.2346, allocations: 225.2 kB / 416.6 MB, free: 9.484 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.558e-05/0.2347, allocations: 106.8 kB / 416.7 MB, free: 9.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004785/0.2352, allocations: 457.6 kB / 417.1 MB, free: 8.895 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.421e-05/0.2352, allocations: 33.7 kB / 417.1 MB, free: 8.855 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.2353, allocations: 176 kB / 417.3 MB, free: 8.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.702e-05/0.2354, allocations: 43.62 kB / 417.4 MB, free: 8.637 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.744e-05/0.2354, allocations: 41.7 kB / 417.4 MB, free: 8.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.2356, allocations: 342.8 kB / 417.7 MB, free: 8.246 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.2357, allocations: 47.97 kB / 417.8 MB, free: 8.199 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00015/0.2359, allocations: 112.2 kB / 417.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001946/0.2361, allocations: 102.1 kB / 418 MB, free: 7.965 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2361, allocations: 0 / 418 MB, free: 7.965 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003164/0.2364, allocations: 185.4 kB / 418.2 MB, free: 7.777 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.2364, allocations: 11.92 kB / 418.2 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.2364, allocations: 0 / 418.2 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.2364, allocations: 4 kB / 418.2 MB, free: 7.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.2366, allocations: 19.94 kB / 418.2 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.2366, allocations: 7.984 kB / 418.2 MB, free: 7.734 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.2367, allocations: 15.89 kB / 418.2 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.221e-05/0.2367, allocations: 4 kB / 418.2 MB, free: 7.715 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001589/0.2369, allocations: 179.5 kB / 418.4 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.62e-05/0.2369, allocations: 35.75 kB / 418.4 MB, free: 7.496 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.323e-05/0.237, allocations: 30.97 kB / 418.5 MB, free: 7.469 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.237, allocations: 0 / 418.5 MB, free: 7.469 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.237, allocations: 4 kB / 418.5 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-06/0.237, allocations: 3.984 kB / 418.5 MB, free: 7.461 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002782/0.2373, allocations: 305.4 kB / 418.8 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2373, allocations: 0 / 418.8 MB, free: 7.113 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.987e-05/0.2374, allocations: 8 kB / 418.8 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.2374, allocations: 7.938 kB / 418.8 MB, free: 7.098 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.2374, allocations: 11.98 kB / 418.8 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2374, allocations: 0 / 418.8 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2374, allocations: 0 / 418.8 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003337/0.2377, allocations: 204.8 kB / 419 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.931e-05/0.2378, allocations: 112.9 kB / 419.1 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.568e-05/0.2379, allocations: 11.98 kB / 419.1 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.392e-05/0.238, allocations: 7.984 kB / 419.1 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.345e-05/0.238, allocations: 15.98 kB / 419.2 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.2381, allocations: 8 kB / 419.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003341/0.2384, allocations: 331.1 kB / 419.5 MB, free: 6.375 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.633e-06/0.2384, allocations: 0 / 419.5 MB, free: 6.375 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002813/0.2387, allocations: 59.86 kB / 419.5 MB, free: 6.316 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00147/0.2402, allocations: 1.069 MB / 420.6 MB, free: 5.359 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002858/0.2405, allocations: 119.9 kB / 420.7 MB, free: 5.242 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2405, allocations: 0 / 420.7 MB, free: 5.242 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001299/0.2406, allocations: 63.91 kB / 420.8 MB, free: 5.18 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003978/0.241, allocations: 70.53 kB / 420.9 MB, free: 5.117 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003446/0.2445, allocations: 2.857 MB / 423.7 MB, free: 2.156 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003938/0.2449, allocations: 0.7908 MB / 424.5 MB, free: 1.34 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001344/0.245, allocations: 42.25 kB / 424.6 MB, free: 1.301 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/0.2452, allocations: 99.41 kB / 424.6 MB, free: 1.203 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2452, allocations: 0 / 424.6 MB, free: 1.203 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02354/0.2688, allocations: 7.337 MB / 432 MB, free: 9.957 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.888/8.157, allocations: 10.03 kB / 432 MB, free: 9.953 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches