Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001689/0.001689, allocations: 105.3 kB / 17.73 MB, free: 5.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002016/0.002017, allocations: 192.2 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.476/1.476, allocations: 205.1 MB / 224.5 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002513/0.002513, allocations: 51.92 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.135, allocations: 46.61 MB / 374.6 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.006397/0.1415, allocations: 4.042 MB / 378.7 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.228/0.3695, allocations: 1.121 MB / 379.8 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006355/0.3702, allocations: 11.69 kB / 379.8 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003634/0.3707, allocations: 93.8 kB / 379.9 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005691/0.3713, allocations: 169.8 kB / 380.1 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007981/0.3721, allocations: 283.2 kB / 380.4 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001206/0.3733, allocations: 0.9673 MB / 381.3 MB, free: 8.707 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004678/0.3738, allocations: 279.5 kB / 381.6 MB, free: 8.676 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007155/0.3745, allocations: 377.1 kB / 382 MB, free: 8.625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007974/0.3753, allocations: 441.7 kB / 382.4 MB, free: 8.547 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003523/0.3757, allocations: 113.2 kB / 382.5 MB, free: 8.547 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002812/0.376, allocations: 118.3 kB / 382.6 MB, free: 8.543 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002073/0.3762, allocations: 215.1 kB / 382.8 MB, free: 8.512 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004826/0.3767, allocations: 412.1 kB / 383.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001755/0.3784, allocations: 1.139 MB / 384.4 MB, free: 8.188 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.3785, allocations: 0 / 384.4 MB, free: 8.188 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.3785, allocations: 3.938 kB / 384.4 MB, free: 8.184 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.096e-05/0.3785, allocations: 2 kB / 384.4 MB, free: 8.184 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.003416/0.3819, allocations: 1.209 MB / 385.6 MB, free: 7.398 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.382, allocations: 9.594 kB / 385.6 MB, free: 7.398 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001384/0.3821, allocations: 94.3 kB / 385.7 MB, free: 7.328 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001917/0.3823, allocations: 81.66 kB / 385.8 MB, free: 7.285 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007211/0.3831, allocations: 442.9 kB / 386.2 MB, free: 6.926 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.711e-05/0.3831, allocations: 45.41 kB / 386.2 MB, free: 6.906 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.3833, allocations: 53.2 kB / 386.3 MB, free: 6.891 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00239/0.3857, allocations: 0.9274 MB / 387.2 MB, free: 6.449 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/0.3857, allocations: 1 kB / 387.2 MB, free: 6.449 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.239e-05/0.3858, allocations: 22.66 kB / 387.2 MB, free: 6.434 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.873e-05/0.3858, allocations: 14.36 kB / 387.3 MB, free: 6.434 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003166/0.389, allocations: 0.9764 MB / 388.2 MB, free: 6.16 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006117/0.3952, allocations: 3.061 MB / 391.3 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002598/0.3978, allocations: 0.9189 MB / 392.2 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001402/0.3993, allocations: 438.3 kB / 392.6 MB, free: 3.531 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.762e-05/0.3993, allocations: 14.7 kB / 392.7 MB, free: 3.527 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001306/0.4006, allocations: 467 kB / 393.1 MB, free: 3.363 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 3.126e-06/0.4007, allocations: 0 / 393.1 MB, free: 3.363 MB / 318.1 MB Notification: Performance of matching and sorting (n=50): time 0.003539/0.4042, allocations: 1.084 MB / 394.2 MB, free: 3.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.192e-05/0.4043, allocations: 274 kB / 394.5 MB, free: 2.699 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008926/0.4052, allocations: 0.5054 MB / 395 MB, free: 2.445 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.433e-05/0.4053, allocations: 38.77 kB / 395 MB, free: 2.406 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002172/0.4055, allocations: 343.6 kB / 395.3 MB, free: 2.129 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/0.4057, allocations: 176.3 kB / 395.5 MB, free: 1.996 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002813/0.406, allocations: 134.5 kB / 395.7 MB, free: 1.926 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.915e-05/0.4061, allocations: 365.5 kB / 396 MB, free: 1.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001229/0.4073, allocations: 406.9 kB / 396.4 MB, free: 1.469 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001268/0.4086, allocations: 0.6512 MB / 397.1 MB, free: 1.031 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002214/0.4108, allocations: 0.9706 MB / 398 MB, free: 480 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.333e-06/0.4108, allocations: 3.438 kB / 398 MB, free: 480 kB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003009/0.4138, allocations: 1.129 MB / 399.2 MB, free: 24 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.978e-05/0.4139, allocations: 62.81 kB / 399.2 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.074e-05/0.414, allocations: 6.156 kB / 399.2 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.164e-05/0.414, allocations: 11 kB / 399.2 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/0.4151, allocations: 231.8 kB / 399.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.794e-05/0.4151, allocations: 9.625 kB / 399.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/0.4163, allocations: 180.4 kB / 399.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.041e-05/0.4164, allocations: 32.75 kB / 399.7 MB, free: 15.78 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.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 (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * 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.0003678/0.4168, allocations: 217.1 kB / 399.9 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001359/0.4169, allocations: 61.28 kB / 400 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001545/0.4171, allocations: 70.2 kB / 400 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.4171, allocations: 13.69 kB / 400 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.4171, allocations: 3.938 kB / 400 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.4171, allocations: 0 / 400 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003599/0.4207, allocations: 1.643 MB / 401.7 MB, free: 14.37 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.4208, allocations: 1.547 kB / 401.7 MB, free: 14.37 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008251/0.4216, allocations: 149.7 kB / 401.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.694e-06/0.4216, allocations: 1.219 kB / 401.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.106e-05/0.4217, allocations: 14.95 kB / 401.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.034e-06/0.4217, allocations: 2.562 kB / 401.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4217, allocations: 3.938 kB / 401.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003581/0.4253, allocations: 1.294 MB / 403.1 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002507/0.4256, allocations: 139.7 kB / 403.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.4257, allocations: 12.28 kB / 403.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008173/0.4265, allocations: 104 kB / 403.4 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.4267, allocations: 49 kB / 403.4 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.784e-05/0.4267, allocations: 18.48 kB / 403.5 MB, free: 13.37 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006262/0.4274, allocations: 351.5 kB / 403.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4274, allocations: 0 / 403.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008665/0.4282, allocations: 173.3 kB / 404 MB, free: 13.12 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * 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.003903/0.4322, allocations: 1.854 MB / 405.8 MB, free: 11.87 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002937/0.4351, allocations: 0.9955 MB / 406.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.4351, allocations: 1.094 kB / 406.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001224/0.4364, allocations: 413.6 kB / 407.2 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008199/0.4372, allocations: 95.09 kB / 407.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01327/0.4505, allocations: 6.175 MB / 413.5 MB, free: 6.699 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004205/0.451, allocations: 0.8549 MB / 414.4 MB, free: 5.82 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005041/0.4515, allocations: 77.75 kB / 414.4 MB, free: 5.742 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003826/0.4519, allocations: 211.4 kB / 414.6 MB, free: 5.539 MB / 334.1 MB Notification: Performance of SimCode: time 1.113e-06/0.4519, allocations: 0 / 414.6 MB, free: 5.539 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0416/0.4935, allocations: 13.3 MB / 427.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.688/10.18, allocations: 3.859 kB / 427.9 MB, free: 8.172 MB / 350.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.csv --start-time 0 --stop-time 1e-07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-11 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches