Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008488/0.0008488, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009839/0.000984, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.194/1.194, allocations: 227.7 MB / 246.8 MB, free: 9.68 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001898/0.0001898, allocations: 4 kB / 307.8 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07865/0.07885, allocations: 51.52 MB / 359.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.002816/0.0817, allocations: 2.606 MB / 362 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001271/0.083, allocations: 0.7792 MB / 362.7 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001866/0.08321, allocations: 4 kB / 362.7 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001516/0.08337, allocations: 39.69 kB / 362.8 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002301/0.08361, allocations: 83.3 kB / 362.9 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002984/0.08392, allocations: 103.9 kB / 363 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003897/0.08432, allocations: 390.2 kB / 363.3 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001903/0.08452, allocations: 115.9 kB / 363.5 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002082/0.08473, allocations: 131.5 kB / 363.6 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001555/0.0849, allocations: 139.3 kB / 363.7 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.15e-05/0.08493, allocations: 16 kB / 363.7 MB, free: 8.574 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.211e-05/0.085, allocations: 16 kB / 363.8 MB, free: 8.559 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.924e-05/0.08506, allocations: 51.77 kB / 363.8 MB, free: 8.508 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001352/0.0852, allocations: 180.8 kB / 364 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003181/0.08552, allocations: 406.7 kB / 364.4 MB, free: 7.926 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.08553, allocations: 4 kB / 364.4 MB, free: 7.922 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.08554, allocations: 0 / 364.4 MB, free: 7.922 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.08555, allocations: 3.938 kB / 364.4 MB, free: 7.918 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.0007953/0.08635, allocations: 0.574 MB / 365 MB, free: 7.293 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.08639, allocations: 12.03 kB / 365 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.006e-05/0.08646, allocations: 58.73 kB / 365 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00015/0.08661, allocations: 48.45 kB / 365.1 MB, free: 7.168 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002793/0.0869, allocations: 280.8 kB / 365.4 MB, free: 6.852 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.08693, allocations: 20.94 kB / 365.4 MB, free: 6.828 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.141e-05/0.08698, allocations: 32.22 kB / 365.4 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004524/0.08743, allocations: 292.7 kB / 365.7 MB, free: 6.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.08745, allocations: 0 / 365.7 MB, free: 6.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.637e-05/0.08748, allocations: 12 kB / 365.7 MB, free: 6.488 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.0875, allocations: 8 kB / 365.7 MB, free: 6.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003694/0.08787, allocations: 210.1 kB / 365.9 MB, free: 6.273 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.08937, allocations: 1.16 MB / 367.1 MB, free: 5.035 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004484/0.08983, allocations: 218.7 kB / 367.3 MB, free: 4.812 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002728/0.09011, allocations: 152.1 kB / 367.4 MB, free: 4.664 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.866e-05/0.09014, allocations: 4 kB / 367.4 MB, free: 4.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002795/0.09043, allocations: 174.6 kB / 367.6 MB, free: 4.465 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.363e-06/0.09044, allocations: 0 / 367.6 MB, free: 4.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001285/0.09173, allocations: 0.5185 MB / 368.1 MB, free: 3.918 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.866e-05/0.0918, allocations: 136.5 kB / 368.3 MB, free: 3.754 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002172/0.09202, allocations: 241 kB / 368.5 MB, free: 3.508 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.481e-05/0.09205, allocations: 33.7 kB / 368.5 MB, free: 3.469 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.735e-05/0.09216, allocations: 176.3 kB / 368.7 MB, free: 3.293 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.088e-05/0.09221, allocations: 71.05 kB / 368.8 MB, free: 3.223 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.574e-05/0.09227, allocations: 29.7 kB / 368.8 MB, free: 3.188 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.977e-05/0.09237, allocations: 334.8 kB / 369.1 MB, free: 2.852 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000142/0.09252, allocations: 71.97 kB / 369.2 MB, free: 2.781 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.0927, allocations: 129.1 kB / 369.3 MB, free: 2.637 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002786/0.09299, allocations: 177 kB / 369.5 MB, free: 2.453 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.093, allocations: 0 / 369.5 MB, free: 2.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004716/0.09347, allocations: 306 kB / 369.8 MB, free: 2.145 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.09349, allocations: 4 kB / 369.8 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.0935, allocations: 0 / 369.8 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002988/0.09381, allocations: 92.75 kB / 369.9 MB, free: 2.047 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.09394, allocations: 27.98 kB / 369.9 MB, free: 2.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1308/0.2248, allocations: 1.943 MB / 371.9 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002659/0.2251, allocations: 33.17 kB / 371.9 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.861e-05/0.2251, allocations: 8.938 kB / 371.9 MB, free: 17.97 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001463/0.2253, allocations: 149 kB / 372.1 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.886e-05/0.2253, allocations: 24.84 kB / 372.1 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.872e-05/0.2254, allocations: 37.33 kB / 372.1 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.2254, allocations: 7.469 kB / 372.1 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.2254, allocations: 1.375 kB / 372.1 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.2254, allocations: 2.016 kB / 372.1 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008392/0.2262, allocations: 0.7765 MB / 372.9 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.2263, allocations: 0 / 372.9 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.2264, allocations: 23.78 kB / 372.9 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002384/0.2266, allocations: 92.98 kB / 373 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.2266, allocations: 5.391 kB / 373 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001558/0.2282, allocations: 1.934 MB / 375 MB, free: 16.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.2282, allocations: 1.828 kB / 375 MB, free: 16.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000567/0.2288, allocations: 461.6 kB / 375.4 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.715e-05/0.2289, allocations: 123.6 kB / 375.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.324e-05/0.2289, allocations: 9.703 kB / 375.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001912/0.2291, allocations: 25.23 kB / 375.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.702e-05/0.2292, allocations: 31.52 kB / 375.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.2292, allocations: 7.391 kB / 375.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001426/0.2294, allocations: 175.4 kB / 375.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2294, allocations: 5.062 kB / 375.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004234/0.2298, allocations: 93.84 kB / 375.9 MB, free: 15.81 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007754/0.2306, allocations: 0.9963 MB / 376.9 MB, free: 15.13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005903/0.2312, allocations: 362.5 kB / 377.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2312, allocations: 0 / 377.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003587/0.2316, allocations: 262.9 kB / 377.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004122/0.232, allocations: 59.97 kB / 377.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002803/0.2348, allocations: 2.949 MB / 380.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001693/0.235, allocations: 0.7648 MB / 381.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.109e-05/0.2351, allocations: 20.16 kB / 381.3 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.984e-05/0.2352, allocations: 81.61 kB / 381.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2352, allocations: 4 kB / 381.3 MB, free: 12.33 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01697/0.2522, allocations: 6.828 MB / 388.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001202/0.2523, allocations: 239.1 kB / 388.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.699/1.952, allocations: 0 / 388.4 MB, free: 10.8 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches